Summary
If the `component` is
null
, this method tries to find one on the `gameObject` or its parents or
children (in that order).
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerUtilities
Syntax
public static bool GetComponentInParentOrChildren<T>(this GameObject gameObject, ref T component)
where T : class
Type Parameters
Name | Description |
---|---|
T |
Parameters
Name | Type | Description |
---|---|---|
gameObject | GameObject | |
component | T |
Return Value
Type | Description |
---|---|
bool |