↧
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 ArticleAnswer by oliver-jones
I've found out how:var renderers = GetComponentsInChildren(Renderer); for (var r : Renderer in renderers) { r.enabled = false; }
View ArticleAnswer 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 ArticleAnswer by jonc113
From what I see, de-activating has better performance than de-rendering, assuming this is correct English. for example :...
View Article