Gizmos showing in-game while gameObject doesn't.

As the titles say. After an unrelated script that I added for some reason, I could not see any
gameObject that I included in my scene other than 2-3 prefabs I had already made.

dimwittedaltruisticfluke

Not sure if it’s clear from the video above but the gizmos are showing a bit.
Sorry if this is the wrong section I am new to Unity forums and Unity all together.

Where is the blue color filling the Game view coming from? What are your camera settings, and are the objects which aren’t appearing placed farther from the camera than the camera’s max viewing distance?

Thanks for notifying me I didn’t want to include way too much to make it easier to read.

This is a completely new screen the camera is the default one. I just made it a child of the player to just follow him around.

They are sitting on a simple box collider.
They are not placed further from the camera view in fact in the gif above I showcase that I follow the “Enemy” to show that in the in-game view he doesn’t show up while the gizmos do.

You’ve got the child objects selected, but the transform position of a child is just an offset from whatever the parent’s values are, so it doesn’t really say anything meaningful without knowing the parent’s values.

What I was getting at in my first post is if you look at the camera there are near/far clipping plane values. The camera will not show any object which is closer than the near clipping plane (0.3 units), nor farther than the far clipping plane (1000 units). Try adjusting the position of objects to make sure they are within the acceptable range, or the position of the camera. You could easily have one of these missing objects too close to the camera, since you’re camera is nearly at 0 of the player. Even though you’re viewing everything in 2D, the game engine actually operates in 3D. It might be helpful to flip the scene view into 3D to look for that kind of issue.

Also, there’s no reason to keep what the camera is looking at right at the edge of the camera’s near clipping plane. I’d be moving the camera out at least 100 units away just to keep it from being a problem, even if it ends up not being the cause here.

1 Like

Such an obvious problem. I didn’t notice it you are correct.

I even switched to 3D before but it didn’t show well because I had many things going on the screen.

Somehow I just messed up the Z-axis of the object and I did the same thing on the camera on the other scene… still tho the gizmos shouldn’t show up I think.

Anyway thanks a ton for your help!

1 Like

The gizmos are showing up a bit because some of the line is visible inside the clipping plane of the camera. As you can see in your last screenshot, your line is extending from where the sprite is to z = 0.

1 Like