- Home /
help hiding object?
i downloaded the fps tutorials, but i dont know how to hide the models of them. like when your not shooting to hide the gun
Answer by BerggreenDK · Jun 26, 2011 at 07:45 PM
Any GameObject can be turned off.
All you need to do is to find the GameObject you want to make active(show)/inactive(hide)
http://unity3d.com/support/documentation/ScriptReference/GameObject-active.html
Answer by BigBulle · Jun 26, 2011 at 07:54 PM
If it's only to hide the object, I would use the following: gameObject.renderer.enabled = false;
Your answer
![](https://koobas.hobune.stream/wayback/20220612122504im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to hide part of a gameobject? 1 Answer
How to Hide or mask the image target after tracking ??? 0 Answers
how to toggle on/off a gameobject with a GUI button ? 3 Answers
How to hide 3D text behind other game objects. 0 Answers
Hide/Show a game object and activate/deactivate a script of another game object with one script 1 Answer