Class NetworkAnimator
A component to synchronize animation states for networked objects.
Inherited Members
Show
Mirage.NetworkBehaviour._nextSyncTime
Mirage.NetworkBehaviour.SyncSettings
Mirage.NetworkBehaviour.IsServer
Mirage.NetworkBehaviour.IsClient
Mirage.NetworkBehaviour.IsLocalClient
Mirage.NetworkBehaviour.IsHost
Mirage.NetworkBehaviour.IsLocalPlayer
Mirage.NetworkBehaviour.IsServerOnly
Mirage.NetworkBehaviour.IsClientOnly
Mirage.NetworkBehaviour.HasAuthority
Mirage.NetworkBehaviour.NetId
Mirage.NetworkBehaviour.Server
Mirage.NetworkBehaviour.ServerObjectManager
Mirage.NetworkBehaviour.Client
Mirage.NetworkBehaviour.ClientObjectManager
Mirage.NetworkBehaviour.Owner
Mirage.NetworkBehaviour.World
Mirage.NetworkBehaviour.NetworkTime
Mirage.NetworkBehaviour.BehaviourId
Mirage.NetworkBehaviour.SyncVarDirtyBits
Mirage.NetworkBehaviour.AnySyncObjectDirty
Mirage.NetworkBehaviour.syncObjects
Mirage.NetworkBehaviour.Identity
Mirage.NetworkBehaviour.COMPONENT_INDEX_NOT_FOUND
Mirage.NetworkBehaviour.ComponentIndex
Mirage.NetworkBehaviour.InitSyncObject(Mirage.Collections.ISyncObject)
Mirage.NetworkBehaviour.UpdateSyncObjectShouldSync()
Mirage.NetworkBehaviour.SyncVarEqual<T>(T, T)
Mirage.NetworkBehaviour.ClearDirtyBits()
Mirage.NetworkBehaviour.AnyDirtyBits()
Mirage.NetworkBehaviour.SerializeObjectsAll(Mirage.Serialization.NetworkWriter)
Mirage.NetworkBehaviour.SerializeObjectsDelta(Mirage.Serialization.NetworkWriter)
Mirage.NetworkBehaviour.GetRpcCount()
Mirage.NetworkBehaviour.RegisterRpc(Mirage.RemoteCalls.RemoteCallCollection)
Syntax
[Obsolete("NetworkAnimator is not optimzied so should not used in production.")]
public class NetworkAnimator : NetworkBehaviour
Fields
ClientAuthority
Declaration
public bool ClientAuthority
Animator
The animator component to synchronize.
Declaration
public Animator Animator
Methods
OnSerialize(NetworkWriter, Boolean)
Custom Serialization
Declaration
public override bool OnSerialize(NetworkWriter writer, bool initialState)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkWriter | writer | |
System.Boolean | initialState |
Returns
Type | Description |
---|---|
System.Boolean |
OnDeserialize(NetworkReader, Boolean)
Custom Deserialization
Declaration
public override void OnDeserialize(NetworkReader reader, bool initialState)
Parameters
Type | Name | Description |
---|---|---|
Mirage.Serialization.NetworkReader | reader | |
System.Boolean | initialState |
SetTrigger(String)
Causes an animation trigger to be invoked for a networked object. If local authority is set, and this is called from the client, then the trigger will be invoked on the server and all clients. If not, then this is called on the server, and the trigger will be called on all clients.
Declaration
public void SetTrigger(string triggerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | triggerName | Name of trigger. |
SetTrigger(Int32)
Causes an animation trigger to be invoked for a networked object.
Declaration
public void SetTrigger(int hash)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | hash | Hash id of trigger (from the Animator). |
ResetTrigger(String)
Causes an animation trigger to be reset for a networked object. If local authority is set, and this is called from the client, then the trigger will be reset on the server and all clients. If not, then this is called on the server, and the trigger will be reset on all clients.
Declaration
public void ResetTrigger(string triggerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | triggerName | Name of trigger. |
ResetTrigger(Int32)
Causes an animation trigger to be reset for a networked object.
Declaration
public void ResetTrigger(int hash)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | hash | Hash id of trigger (from the Animator). |