Quantcast
Channel: Answers for "enable/disable specific components"
Browsing latest articles
Browse All 7 View Live

Answer by Jessy

In order to be able to "disable" something, it generally must derive from Behaviour. (Renderer is a notable exception). If you see a checkbox in the Inspector, you can enable or disable it. There are a...

View Article



Answer by ifirt456

My script says Assets/_Scripts/EnterExit.js(24,71): BCE0019: 'enabled' is not a member of 'UnityEngine.Component'. please help since I am only a modeler :)

View Article

Answer by unfox

Way to disable all scripts on object (C#): MonoBehaviour[] scriptComponents = someObject.GetComponents(); foreach(MonoBehaviour script in scriptComponents) { script.enabled = false; }

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images