Objects is visible in dark... how to prevent that?


I’m making a 3D game in unity, the only light source is bound to the player. When the platform is not in range of the light I can still see it… How do I fix this?

Basically hide red platform unless the player is near it…


Looks like the scene’s ambient light is causing this object to stand out from the surrounding grey objects. You can disable all ambient lighting to prevent this.

Anyone recommend another strategy, since that’s probably not what the OP actually wants?

I agree with @Hanoble, but I do have one idea.
How about a Black light where the platform is, with a script the scales the light color based on distance from the player?