Class NetworkEntityState
public class NetworkEntityState
- Inheritance
-
NetworkEntityState
Constructors
NetworkEntityState(SerializeEntityID, AuthorityType, bool, bool, ICoherenceSync, string)
public NetworkEntityState(SerializeEntityID entityId, AuthorityType authority, bool isOrphaned, bool networkInstantiated, ICoherenceSync sync, string uuid)
Parameters
entityId
SerializeEntityIDauthority
AuthorityTypeisOrphaned
boolnetworkInstantiated
boolsync
ICoherenceSyncuuid
string
Fields
ClientConnection
Instance for a Client Connection, in the case this EntityState represents a Client Connection.
public CoherenceClientConnection ClientConnection
Field Value
Properties
AuthorityType
public ObservableAuthorityType AuthorityType { get; }
Property Value
CoherenceUUID
A unique identifier used to ensure that CoherenceSync objects with
public string CoherenceUUID { get; }
Property Value
EntityID
A local id used to identify the entity on the current client. This id is not synced across clients.
If you need to sync or send an entity reference to another client,
use a coherence 'entity reference' instead (this can be a CoherenceSync
,
GameObject
or a UnityEngine.Transform
.)
public SerializeEntityID EntityID { get; }
Property Value
- SerializeEntityID
HasInputAuthority
True if your client has input authority over the entity. Input authority can produce inputs via CoherenceInput which are then sent to the state authority who processes them.
public bool HasInputAuthority { get; }
Property Value
HasStateAuthority
True if your client has state authority over the entity. State authority is an actual owner of the entity and controls all the synced variables.
public bool HasStateAuthority { get; }
Property Value
IsMyClientConnection
True if the entity is the prefab sync created by the client connection for this client.
public bool IsMyClientConnection { get; }
Property Value
IsOrphaned
True if no client has authority over the entity.
public bool IsOrphaned { get; }
Property Value
LastTimeRequestedOrphanAdoption
public float LastTimeRequestedOrphanAdoption { get; }
Property Value
NetworkInstantiated
True, if the object was originally created from network replication. False, if the object was instantiated locally.
public bool NetworkInstantiated { get; }
Property Value
Sync
public ICoherenceSync Sync { get; }