Hi guys,
I’m making 2d game but can’t see in game mode my player.
Background and canvas are visible, just the player can’t seem to show up, any ideas why?
Thanks in advance!
Hi guys,
I’m making 2d game but can’t see in game mode my player.
Background and canvas are visible, just the player can’t seem to show up, any ideas why?
Thanks in advance!
Not without more to go on. Try posting a screen shot showing (1) the Game view, (2) the Scene view, (3) the Hierarchy with the player object selected (and double-click it so it centers itself in the scene view), and (4) the Inspector.
My first guess is that the player simply isn’t in view. Select the Main Camera, and look in the scene view, where you’ll find a frustum (like a truncated pyramid) drawn that shows the area the camera can see. Does this cover your player?
If not, that’s the answer. Move your player and/or camera until the player is in view.
Is that last screen shot above taken while the game is running? I think probably not… can you hit Play and then check it again? It could be something is moving your camera (or player) at runtime.
It could also be that your canvas is simply blocking the view. Try disabling the canvas and see if that helps.
I’m wondering if your player is falling looking for a floor, I don’t see one. All character controllers look for a flag ‘isGrounded’ before it will let the character walk and jump. When 'isGrounded is false the character falls. Try putting a plane under your character.
Thanks guys for your help!
I found the problem, I changed the rendering setting to “space - camera” instead of overlay, and made main camera orthographic not perspective and now it’s working perfectly.
Thanks again!