- Home /
Question by
shailshah2905 · Aug 08, 2020 at 05:20 AM ·
2dprefabnot visible
My 2D prefab is not showing in game
My prefab is not visible in game, but in scene window it is showing. (It is also blasting my player in game) 
sharedscreenshot.jpg
(331.7 kB)
sharedscreenshot2.jpg
(270.0 kB)
Comment
Answer by ryo310 · Aug 08, 2020 at 12:22 PM
Here's an example. Look at the picture. Now the sprite on the right is coming up and the sprite on the left is coming down.
But I want the left sprite to come up. To do so, press the left sprite and set the Order in layer in the Inspector's SpriteRenderer to 1.

Then you can show it on top.
スクリーンショット-2020-08-08-145222.png
(38.6 kB)
スクリーンショット-2020-08-08-145239.png
(22.7 kB)
I have done that already. $$anonymous$$y background is layer 0 and prefab is layer 1.
Your answer