Summary
Returns the `state` if it's a child of this layer. Otherwise makes a clone of it.
- Assembly
- Animancer
.dll - Namespace
- Animancer
- Containing Type
- AnimancerLayer
Syntax
public AnimancerState GetOrCreateState(AnimancerState state)
Remarks
The clone starts with 0 weight, no fade, and no events.
Parameters
| Name | Type | Description |
|---|---|---|
| state | AnimancerState |
Return Value
| Type | Description |
|---|---|
| AnimancerState |