- Home /
Game object is visible in scene tab,but not in the game tab.
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.
I've tried this method, when in Game $$anonymous$$ode, 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
I'm having the same problem. I have game objects that are instantiated in the script, and they're all appearing in the scene view, but only a small number of them appear in game view. I don't know what would be causing that.
Answer by arun.pandey89 · Apr 07, 2014 at 07:12 AM
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 .
Great , Hope you don't $$anonymous$$d accepting it as answer , so that it can help others facing same issue .
This was a marvelous solution! Thank you! However, I noticed I have to resize all my assets to match the camera's dimensions. This is odd because a 1080p camera should have aligned perfectly for images laid out to these dimensions in Illustrator. Is there a way to keep my assets the same size as exported? This is important for eyeballing a layout can cause QA problems.
This works only once. When I spawn another instance it is again invisible. How do I fix this permanently?
Answer by devantamot · Aug 05, 2018 at 05:47 PM
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
$$anonymous$$essed around with the camera for so long, but changing the Z coordinates fixed it!!
Answer by THX1138 · Jun 30, 2016 at 05:10 PM
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.
This bug is still an issue and it stole my half hour to find. Thanks man.
Answer by ekkard · May 30, 2018 at 11:08 PM
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.
Answer by agasaro19 · Apr 27, 2016 at 03:11 AM
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.
Your answer
Follow this Question
Related Questions
GameObject won't appear in Game view 2 Answers
Stepping through WaitForEndOfFrame when GameView isn't visible 1 Answer
SpriteManager sprites only visible in scene view 2 Answers
Selecting objects in scene view with left mouse button always selects child object. 1 Answer
Cannot see gameobjects in Unity editor (DOTS problem) 0 Answers