Method GetChild
GetChild(int)
Returns the child of the GameObject
Declaration
public GameObject GetChild(int childIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | childIndex | The index of the child to return |
Returns
| Type | Description |
|---|---|
| GameObject | The child with matching index if found, null otherwise |
Remarks
This will take a dependency on the child
GetChild(Component, int)
Returns the child of the GameObject
Declaration
public GameObject GetChild(Component component, int childIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Component | component | The Object to get the child from |
| int | childIndex | The index of the child to return |
Returns
| Type | Description |
|---|---|
| GameObject | The child with matching index if found, null otherwise |
Remarks
This will take a dependency on the child
GetChild(GameObject, int)
Returns the child of the GameObject
Declaration
public GameObject GetChild(GameObject gameObject, int childIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | gameObject | The GameObject to get the child from |
| int | childIndex | The index of the child to return |
Returns
| Type | Description |
|---|---|
| GameObject | The child with matching index if found, null otherwise |
Remarks
This will take a dependency on the child