Summary
Creates a state for the walk animation so that
Animancer.Examples.FineControl.NamedAnimations.PlayWalk
can play it.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Examples .FineControl - Containing Type
- NamedAnimations
Syntax
public void InitializeWalkState()
Remarks
Calling this method more than once will throw an
System.ArgumentException
because a state already
exists with the key it's trying to use (the animation's name).
If we wanted to allow repeated calls we could use
Animancer.AnimancerLayer.GetOrCreateState(UnityEngine.AnimationClip,System.Boolean)
instead, which would create a state the
first time then return the same one every time after that.
If we wanted to actually create multiple states for the same animation, we would have to use the optional
`key` parameter to specify a different key for each of them.
Return Value
Type | Description |
---|---|
void |