Quantcast
Channel: Answers for "How To Deactivate A Parent (And Its Children)?"
Browsing latest articles
Browse All 8 View Live

Answer by ericksson

Children are stored in the Transform of their parent. In order to deactivate all the children you have to loop through them like so:for(var child : Transform in parent) child.gameObject.active =...

View Article


Answer by oliver-jones

I've found out how:var renderers = GetComponentsInChildren(Renderer); for (var r : Renderer in renderers) { r.enabled = false; }

View Article


Answer by dingben

From Scripting Docs:function SetActiveRecursively (state : bool) : voidSets the active state of this and all the game objects children to state.Thus to deactivate Object and all its children:var...

View Article

Answer by jonc113

From what I see, de-activating has better performance than de-rendering, assuming this is correct English. for example :...

View Article
Browsing latest articles
Browse All 8 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>