Summary
[Animancer Extension]
Returns the
Animancer.IAnimancerComponent on the same UnityEngine.GameObject as the `animator` if
there is one. Otherwise this method adds a new one and returns it.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerUtilities
Syntax
public static T GetOrAddAnimancerComponent<T>(this Animator animator)
where T : Component, IAnimancerComponent
Type Parameters
| Name | Description |
|---|---|
| T |
Parameters
| Name | Type | Description |
|---|---|---|
| animator | Animator |
Return Value
| Type | Description |
|---|---|
| T |