- Home /
 
              This question was 
             closed Mar 16, 2020 at 10:03 PM by 
             Stuarttheboy11. 
            
 
             
               Question by 
               Stuarttheboy11 · Mar 16, 2020 at 09:56 PM · 
                gameobjectenableddisable object  
              
 
              How can I hide/expose a gameobject based on its distance from the player/camera?
Im currently working on an infinite universe project, and one of the things is having to optimize the hell out of it. I need to figure out how to enable and disable solar systems or galaxies based on how far away they are from the fly-Cam. does anyone know how to achieve this, if so can you please help me?
               Comment
              
 
               
              Answer by mrmeizongo · Mar 16, 2020 at 10:00 PM
You can manipulate the clipping plane value in the camera inspector.
Follow this Question
Related Questions
Enable & Disable multiple game objects 0 Answers
Gameobject script enable weird behavior 1 Answer
Switching between two objects using "enable"? 1 Answer
Typecasting problem? 3 Answers