Network state sync animation
Last updated
Last updated
You can use a network state to synchronize playback of an animation. The example on this page shows how you can play and pause an animation.
This example uses three networks states:
The object to be animated includes an Animator component, and a Network State Trigger_Synced Animation
script.
Another network state is linked to the Play Controller State
property of the Network State Trigger_Synced Animation
script. This network state synchronizes whether the animation is playing.
Another network state is linked to the Pause Time Value State
property of the Network State Trigger_Synced Animation
script. This network state synchronizes the point on the animation timeline where the animation is paused.
The following diagram shows an example of how to arrange the components in Unity, and the required references.