GameObjectExtensions.SetChildrenActive(GameObject, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set all GameObject children active or inactive based on argument
public:
[System::Runtime::CompilerServices::Extension]
static void SetChildrenActive(UnityEngine::GameObject ^ root, bool isActive);
public static void SetChildrenActive (this UnityEngine.GameObject root, bool isActive);
static member SetChildrenActive : UnityEngine.GameObject * bool -> unit
<Extension()>
Public Sub SetChildrenActive (root As GameObject, isActive As Boolean)
Parameters
- root
- UnityEngine.GameObject
GameObject parent to traverse from
- isActive
- Boolean
Indicates whether children GameObjects should be active or not
Remarks
Does not call SetActive on the top level GameObject, only its children