Method GetChildren
GetChildren(bool)
Returns the children of the GameObject
Declaration
public GameObject[] GetChildren(bool includeChildrenRecursively = false)Parameters
| Type | Name | Description | 
|---|---|---|
| bool | includeChildrenRecursively | Whether all children in the hierarchy should be added recursively | 
Returns
| Type | Description | 
|---|---|
| GameObject[] | The children of the GameObject | 
Remarks
This will take a dependency on the children
GetChildren(Component, bool)
Returns the children of the GameObject
Declaration
public GameObject[] GetChildren(Component component, bool includeChildrenRecursively = false)Parameters
| Type | Name | Description | 
|---|---|---|
| Component | component | The Object to get the children from | 
| bool | includeChildrenRecursively | Whether all children in the hierarchy should be added recursively | 
Returns
| Type | Description | 
|---|---|
| GameObject[] | The children of the GameObject | 
Remarks
This will take a dependency on the children
GetChildren(GameObject, bool)
Returns the children of the GameObject
Declaration
public GameObject[] GetChildren(GameObject gameObject, bool includeChildrenRecursively = false)Parameters
| Type | Name | Description | 
|---|---|---|
| GameObject | gameObject | The GameObject to get the children from | 
| bool | includeChildrenRecursively | Whether all children in the hierarchy should be added recursively | 
Returns
| Type | Description | 
|---|---|
| GameObject[] | The children of the GameObject | 
Remarks
This will take a dependency on the children
GetChildren(List<GameObject>, bool)
Returns the children of the GameObject
Declaration
public void GetChildren(List<GameObject> gameObjects, bool includeChildrenRecursively = false)Parameters
| Type | Name | Description | 
|---|---|---|
| List<GameObject> | gameObjects | The children of the GameObject | 
| bool | includeChildrenRecursively | Whether all children in the hierarchy should be added recursively | 
Remarks
This will take a dependency on the children
GetChildren(Component, List<GameObject>, bool)
Returns the children of the GameObject
Declaration
public void GetChildren(Component refComponent, List<GameObject> gameObjects, bool includeChildrenRecursively = false)Parameters
| Type | Name | Description | 
|---|---|---|
| Component | refComponent | The Object to get the children from | 
| List<GameObject> | gameObjects | The children of the GameObject | 
| bool | includeChildrenRecursively | Whether all children in the hierarchy should be added recursively | 
Remarks
This will take a dependency on the children
GetChildren(GameObject, List<GameObject>, bool)
Returns the children of the GameObject
Declaration
public void GetChildren(GameObject gameObject, List<GameObject> gameObjects, bool includeChildrenRecursively = false)Parameters
| Type | Name | Description | 
|---|---|---|
| GameObject | gameObject | The GameObject to get the children from | 
| List<GameObject> | gameObjects | The children of the GameObject | 
| bool | includeChildrenRecursively | Whether all children in the hierarchy should be added recursively | 
Remarks
This will take a dependency on the children