Editar

Partilhar via


GameObjectExtensions.SetChildrenActive(GameObject, Boolean) Method

Definition

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

Applies to