Class NetworkAnimator
Synchronizes an animator over the network.
Inheritance
System.Object
NetworkAnimator
Assembly: cs.temp.dll.dll
Syntax
public sealed class NetworkAnimator : NetworkComponent, INetworkAuthoritative
Fields
Animator
Animator component to synchronize. Required.
Declaration
Field Value
Type |
Description |
Animator |
|
ReceiveDelay
Declaration
public float ReceiveDelay
Field Value
Type |
Description |
System.Single |
|
SendIntervalMin
Declaration
public float SendIntervalMin
Field Value
Type |
Description |
System.Single |
|
SyncChannel
Declaration
Field Value
Type |
Description |
System.Byte |
|
SyncMethod
Which method to synchronize in.
Declaration
public NetworkSyncModeMethod SyncMethod
Field Value
SyncParameters
Syncronize animator parameters.
Declaration
public bool SyncParameters
Field Value
Type |
Description |
System.Boolean |
|
SyncStates
Syncronize animator states.
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Properties
IsAuthority
Send updates to remote peers.
Declaration
public bool IsAuthority { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
OnNetworkConnect(Peer)
Declaration
public override void OnNetworkConnect(Peer peer)
Parameters
Type |
Name |
Description |
Peer |
peer |
|
Overrides
OnNetworkDisconnect(Peer)
Declaration
public override void OnNetworkDisconnect(Peer peer)
Parameters
Type |
Name |
Description |
Peer |
peer |
|
Overrides
OnNetworkMessage(Peer, Reader, MessageReceived)
Declaration
public override void OnNetworkMessage(Peer peer, Reader reader, MessageReceived info)
Parameters
Overrides
OnNetworkRegister()
Declaration
public override void OnNetworkRegister()
Overrides
OnNetworkResend(Peer, Peer, Reader, MessageReceived)
Declaration
public override bool OnNetworkResend(Peer origin, Peer peer, Reader reader, MessageReceived info)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
SetAuthority(Boolean)
Update authority on this component.
Declaration
public void SetAuthority(bool authority)
Parameters
Type |
Name |
Description |
System.Boolean |
authority |
Authority to set.
|
SetTrigger(Int32)
Sets a trigger locally and sends it to everybody on the network regardless of authority.
Declaration
public void SetTrigger(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
Trigger hash ID.
|
SetTrigger(String)
Sets a trigger locally and sends it to everybody on the network regardless of authority.
Declaration
public void SetTrigger(string triggerName)
Parameters
Type |
Name |
Description |
System.String |
triggerName |
Trigger name.
|
Events
OnNetworkTrigger
Called when trigger parameter is set remotely.
Declaration
public event NetworkAnimator.OnNetworkTriggerHandler OnNetworkTrigger
Event Type
Type |
Description |
SuperNet.Unity.Components.NetworkAnimator.OnNetworkTriggerHandler |
|
Explicit Interface Implementations
INetworkAuthoritative.OnNetworkAuthorityUpdate(Boolean, HostTimestamp)
Declaration
void INetworkAuthoritative.OnNetworkAuthorityUpdate(bool authority, HostTimestamp timestamp)
Parameters
Type |
Name |
Description |
System.Boolean |
authority |
|
HostTimestamp |
timestamp |
|
Implements