Method GetChild
GetChild(Int32)
Returns the child of the GameObject
Declaration
public GameObject GetChild(int childIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | 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, Int32)
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 |
Int32 | 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, Int32)
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 |
Int32 | 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