Method GetNamedChild
GetNamedChild(GameObject, string)
Gets a descendant GameObject with a specific name
Declaration
public static GameObject GetNamedChild(this GameObject go, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | go | The parent object that is searched for a named child. |
| string | name | Name of child to be found. |
Returns
| Type | Description |
|---|---|
| GameObject | The returned child GameObject or null if no child is found. |