Summary
Returns the first T component on the `gameObject` or its parents or children (in
that order).
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerUtilities
Syntax
public static T GetComponentInParentOrChildren<T>(this GameObject gameObject) where T : class
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| gameObject | GameObject |
Return Value
| Type | Description |
|---|---|
| T |