Manual Animations
ObjectNet allows to manually animate objects instead using auto animation provided by Network Prefab ( see Synchronization Options).
Important: This methods are available only to classes inherited from NetworkBehaviour.
To animate objects using ObjectNet API you need to use one of the following code.
//similar to unity animator.Play
this.Animation.Play("clipName");
//similar to unity animtor.Crossfade
this.Animation.CrossFade("ClipName", float normalizedTransitionDuration);
//similar to unity animator.CrossFadeInFixedTime
this.Animation.CrossFadeInFixedTime("ClipName", float fixedTransitionDuration);
This method will play animation locally and send animation event over network to be played on network instances
You can use Manual Animations Api with all animation sync Modes, including UseController, UseParameters, and ManualControl. See Synchronization Options
Last updated