A class in Root.Township, the global namespace.
Inspector debug tool that sets integer parameters on an animator and forces it into a named state.
Constructors
| Member | What it is |
|---|
AnimatorForcerTool() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
6 private and internal fields
| Member | What it is |
|---|
private Animator animator | Animator to force. |
private bool btnApply | Inspector button that calls Apply. |
private int layer | Animator layer the state is on. |
private string[] parameterName | Integer parameter names, paired by index with parameterValue. |
private int[] parameterValue | Values set on the matching parameters. |
private string stateName | State to play. |
Methods
1 private and internal method
| Member | What it is |
|---|
private void Apply() | Sets each listed integer parameter, plays the state from the start on the layer, then advances the animator one second. |