Search Unity

Coin prefab shows up in Scene but not game

Discussion in 'Editor & General Support' started by CarsonStruck, Aug 10, 2021.

  1. CarsonStruck

    CarsonStruck

    Joined:
    Nov 12, 2020
    Posts:
    2
    I'm learning Unity from a book called "Developing 2D Games with Unity" and I'm stuck where it's telling me to play the game and I should see the coin but not collide with it... anyway. I play the game and it doesn't show up. But I've created a prefab of this coin and dragged it into the scene. As you can see in my screenshot, it's in the scene, I've got it on my "objects" layer which is between my Ground and Character layer.
    upload_2021-8-9_21-11-47.png upload_2021-8-9_21-9-57.png I can see all layers. And as you can see when I play the game, it's not there.
    upload_2021-8-9_21-11-24.png
    I feel like I've messed up somewhere... But have no clue where and feel like maybe I should just keep reading? Like maybe this is supposed to happen? I just threw my enemy prefab onto my scene and it showed up in the game using the "enemies" layer. No screenshot of that though. Any help is appreciated. Hopefully, upload_2021-8-9_21-9-57.png upload_2021-8-9_21-11-24.png upload_2021-8-9_21-11-47.png I'll figure it out before too long.
     
  2. CarsonStruck

    CarsonStruck

    Joined:
    Nov 12, 2020
    Posts:
    2
    Just in case someone else has this issue. I needed to set my Z axis to 0 under the Transform Component.
     
    Kurt-Dekker likes this.