I create a new empty game object which i edit it by myself and the object is visible in the scene tab,but not in the game tab.I can see it moving in the scene tab,but i cannot see that object in the game scene.
However,we i just drag a picture into the scene tab and it will automatically create a object.I edit that object just as same as what i create below.It can be seen in both scene and game tabs.It’s a little weird.I don’t know what the problem is.
There could be many issues .
Try this ,
In scene mode , set the view in a way that you can see gameobject clearly .
Now click on MainCamera object in your hierarchy . There you see a camera preview available in scene mode( for what see via camera in game mode). If your game object is not visible there .Try this , while your MainCamera object is clicked , go to tab Game Object , there is an option Align To View , which will align your camera according to your scene mode .
There you go ,now you can see your game object in Game view also .
Hope it helps .
Make sure your Z coordinates are right. When in 2D, it didn’t show up for some reason but when I took a look at it in 3D, I saw that my game objects were behind the background
Had the same weird problem - wasn’t seeing some prefabs with sub-components. Select the object and set layer to Default again (or whatever - including children). For some reason, the children ended up in another layer (NGUI???), and the main camera wasn’t rendering them.
that’s because the camera is rendering in another layer than the object’s layer in the Z axis(in a 2D game case)
try putting all the objects and the camera in the same layer, that solved my problem.
Check the z transform position of your created empty object and make it 0.
I am not sure that this is related to your question but I was creating a static background with layers, and I couldn’t see all of the objects in the scene, and realized that it was because my main camera’s projection flag was set on perspective instead of orthographic.
I’ve tried this method, when in Game Mode, it does not display any Game Objects. The problem occurred after applying a “Time.timeScale = 0” along with a LoadLevelAdditive script to the main camera. I’ve deleted the script and all game objects apear in scene view but not in game view
Just another possibility in case someone comes across it-- Several of my objects were not appearing because of something to do with occlusion. I cleared the occlusion and my objects showed up. All layers, tags, static settings, etc.were the same on nearby objects that would stay in the scene. While I don’t know exactly what the issue is yet, at least I know it’s not any of the other settings mentioned above.
my expereince is just click reset on Trnnsform of object and relocation.
I had the same problem.
Is a 2D game, so the Z axis dosen’t matters, right?
WRONG
My GameObjets were BEHIND the camera
The camera by defaut stays in -10 (Z Position), so all the objects has to be a Z position value grater than this.
yes, Game Object > Align To View as arun.pandey89’s answer.
And after doing Game Object > Align To View, sometimes you have to change camera 's clipping plane value.
I had this problem where i could not see sprites or objects i had created in the hierarchy, unless I dragged them in to the scene from the project tab and i found out it was because my objects all were put at Z-2181.924 meaning unless the camera was there too none of the new stuff i created would show up and i do not have a fix for.
I faced the same problem. and then i found the solution.
you can see the video for solving the issue :
in my case i had the camera in front of the prefab and was able to see it in scene mode(it was in 2d mode) but unable to see it in game view. I changed the scene view from 2D to 3D and saw that the prefab was behind the camera and not in front of it that is why it wasn’t visible.
Maybe you haven’t imported the sprites package from your disk if you are in 2D.
To import them go to:
Window > Package Manager > + > import package from hard drive > go to the disk in which you have downloaded unity > unity > editor > data > resources > packages > click on the folder named as something sprite package > then open the .json file from in there.
Maybe this could fix the issue.,Maybe you haven’t imported the sprites package from your disk if you are in 2D.
To import them go to:
Window > Package Manager > + > import package from hard drive > go to the disk in which you have downloaded unity > unity > editor > data > resources > packages > click on the folder named as something sprite package > then open the .json file from in there.
Maybe this could fix the issue.
Okay, I had this same problem but I was instantiating objects instead. My problem was the objects weren’t showing up in the game view and not the scene view. If you are having this problem, make sure the Z axis is set to 0 on the position of what your instantiating.
Here’s a bit of my code:
pos.position = new Vector3(x, y, z);
Instantiate(gameobject, pos.position, pos.rotation);
For me this fixed it, go to your Game area in unity where you can see the game when you play it, and fix the Scale, it’s probably something wrong with resolution that you put in next to the Scale you can see it choose ‘Free Aspect’ and look if you can see the object
You can fix this by remembering to reset all of your positions every time you create the object and before you move anything.
ps. Reset the transform then create the prefab to save time.
for me the issue had to do with layers. make sure the layer of your game object is checked in the cameras culling mask field