Need help with layers

I looked at the video on creating a simple video game but the video is outdated. I’m trying to make my background element go all the way to the back so all my other elements are on top. But nothing I’ve tried has been able to move my background. Anyone can help? I’m doing it in 2D. Thanks.

Could you share with us your setup and what you have tried already?

1 Like

For 2D gameobjects that use sprites, they usually have a sprite renderer component. If you havent already id recommend checking the “Order in Layer” to change the layering you’re refering to.

It goes the lower the number, the further it would be back in terms of “layers”.

0 would be behind 1, 1 behind 2, and so forth!

I hope this helps!

1 Like

OK! I think I got it! It seems to be working. Thank you so much! I was confused because the Unity platform I’m working on looks very different from what was in the video and what you have shared. Again, thank you!

7087261--843766--Unity Layout.jpeg

KalOBrien suggestion worked. I’m going to use the layer order. I couldn’t find how to use it correctly at first and I looked through tutorials and the manual. It left me even more confused. But I think I got it. Thanks for responding to my post.

1 Like

I’m still having trouble trying to build a simple space game like Space Invaders from the 80s. The tutorial seems to be outdated to the platform that I’m using. I’m just trying to get my spaces craft to move/fly around using arrows buttons and the digital “bugs” to come down from the alien spaceship towards the white spacecraft. There is no longer a PUSH component to add to make the spacecraft or anything move around. Are there any other tutorials on here that I can use that are more updated to the Unity platform? Thanks.

here’s the older version instructions and here’s what the platform looks like right now that I’m working off of…


and here’s the newer platform:

With elements…

you should use a new tutorial that is made on your unity version, theres no point to try to break your head like this if you are starting from scratch

Rarac,
Can’t find a current tutorial. Wondering if anyone knew where they were located. I tried searching on Unity but nothing that fits what I’m trying to accomplish.