Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
ClosestateName | The name of the state the will be played. |
layer | The layer where the state is. |
normalizedTime | The normalized time at which the state will play. |
stateNameHash | The hash of the state. |
Plays a state.
This could be used to synchronize your animation with audio or synchronize an Animator over the network.