21 KiB
21 KiB
NetworkedBehaviour Class
The base class to override to write networked code. Inherits MonoBehaviour
Inheritance Hierarchy
System.Object
Object
Component
Behaviour
MonoBehaviour
MLAPI.NetworkedBehaviour
MLAPI.MonoBehaviours.Prototyping.NetworkedAnimator
MLAPI.MonoBehaviours.Prototyping.NetworkedNavMeshAgent
MLAPI.MonoBehaviours.Prototyping.NetworkedTransform
Namespace: MLAPI
Assembly: MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public abstract class NetworkedBehaviour : MonoBehaviour
The NetworkedBehaviour type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | NetworkedBehaviour | Initializes a new instance of the NetworkedBehaviour class |
Properties
Name | Description | |
---|---|---|
![]() | animation | **Obsolete. ** (Inherited from Component.) |
![]() | audio | **Obsolete. ** (Inherited from Component.) |
![]() | camera | **Obsolete. ** (Inherited from Component.) |
![]() | collider | **Obsolete. ** (Inherited from Component.) |
![]() | collider2D | **Obsolete. ** (Inherited from Component.) |
![]() | constantForce | **Obsolete. ** (Inherited from Component.) |
![]() | enabled | (Inherited from Behaviour.) |
![]() | gameObject | (Inherited from Component.) |
![]() | guiElement | **Obsolete. ** (Inherited from Component.) |
![]() | guiText | **Obsolete. ** (Inherited from Component.) |
![]() | guiTexture | **Obsolete. ** (Inherited from Component.) |
![]() | hideFlags | (Inherited from Object.) |
![]() | hingeJoint | **Obsolete. ** (Inherited from Component.) |
![]() | isActiveAndEnabled | (Inherited from Behaviour.) |
![]() | isClient | Gets if we are executing as client |
![]() | isHost | Gets if we are executing as Host, I.E Server and Client |
![]() | isLocalPlayer | Gets if the object is the the personal clients player object |
![]() | isOwner | Gets if the object is owned by the local player |
![]() | isServer | Gets if we are executing as server |
![]() | light | **Obsolete. ** (Inherited from Component.) |
![]() | name | (Inherited from Object.) |
![]() | networkedObject | Gets the NetworkedObject that owns this NetworkedBehaviour instance |
![]() | networkId | Gets the NetworkId of the NetworkedObject that owns the NetworkedBehaviour instance |
![]() | networkView | **Obsolete. ** (Inherited from Component.) |
![]() | ownerClientId | Gets the clientId that owns the NetworkedObject |
![]() | particleEmitter | **Obsolete. ** (Inherited from Component.) |
![]() | particleSystem | **Obsolete. ** (Inherited from Component.) |
![]() | renderer | **Obsolete. ** (Inherited from Component.) |
![]() | rigidbody | **Obsolete. ** (Inherited from Component.) |
![]() | rigidbody2D | **Obsolete. ** (Inherited from Component.) |
![]() | runInEditMode | (Inherited from MonoBehaviour.) |
![]() | tag | (Inherited from Component.) |
![]() | transform | (Inherited from Component.) |
![]() | useGUILayout | (Inherited from MonoBehaviour.) |
Methods
Name | Description | |
---|---|---|
![]() | BroadcastMessage(String) | (Inherited from Component.) |
![]() | BroadcastMessage(String, Object) | (Inherited from Component.) |
![]() | BroadcastMessage(String, SendMessageOptions) | (Inherited from Component.) |
![]() | BroadcastMessage(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | CancelInvoke() | (Inherited from MonoBehaviour.) |
![]() | CancelInvoke(String) | (Inherited from MonoBehaviour.) |
![]() | CompareTag | (Inherited from Component.) |
![]() | DeregisterMessageHandler | |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetComponent(Type) | (Inherited from Component.) |
![]() | GetComponent(String) | (Inherited from Component.) |
![]() | GetComponent1()</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponentInChildren(Type)</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponentInChildren(Type, Boolean)</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponentInChildren 1() | (Inherited from Component.) |
![]() | GetComponentInChildren1(Boolean)</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponentInParent(Type)</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponentInParent 1() | (Inherited from Component.) |
![]() | GetComponents(Type) | (Inherited from Component.) |
![]() | GetComponents(Type, List(Component)) | (Inherited from Component.) |
![]() | GetComponents1()</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponents 1(List(UMP)) | (Inherited from Component.) |
![]() | GetComponentsInChildren(Type) | (Inherited from Component.) |
![]() | GetComponentsInChildren(Type, Boolean) | (Inherited from Component.) |
![]() | GetComponentsInChildren1()</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponentsInChildren 1(Boolean) | (Inherited from Component.) |
![]() | GetComponentsInChildren1(List(UMP))</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponentsInChildren 1(Boolean, List(UMP)) | (Inherited from Component.) |
![]() | GetComponentsInParent(Type) | (Inherited from Component.) |
![]() | GetComponentsInParent(Type, Boolean) | (Inherited from Component.) |
![]() | GetComponentsInParent1()</td><td> (Inherited from Component.)</td></tr><tr><td></td><td>GetComponentsInParent 1(Boolean) | (Inherited from Component.) |
![]() | GetComponentsInParent``1(Boolean, List(UMP)) | (Inherited from Component.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetInstanceID | (Inherited from Object.) |
![]() | GetNetworkedObject | Gets the local instance of a object with a given NetworkId |
![]() | GetType | (Inherited from Object.) |
![]() | Invoke | (Inherited from MonoBehaviour.) |
![]() | InvokeRepeating | (Inherited from MonoBehaviour.) |
![]() | IsInvoking() | (Inherited from MonoBehaviour.) |
![]() | IsInvoking(String) | (Inherited from MonoBehaviour.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | NetworkStart | |
![]() | OnGainedOwnership | |
![]() | OnLostOwnership | |
![]() | RegisterMessageHandler | |
![]() | SendMessage(String) | (Inherited from Component.) |
![]() | SendMessage(String, Object) | (Inherited from Component.) |
![]() | SendMessage(String, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessage(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessageUpwards(String) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, Object) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, SendMessageOptions) | (Inherited from Component.) |
![]() | SendMessageUpwards(String, Object, SendMessageOptions) | (Inherited from Component.) |
![]() | SendToClient | Sends a buffer to a client with a given clientId from Server |
![]() | SendToClients(String, String, Byte[]) | Sends a buffer to all clients from the server |
![]() | SendToClients(List(Int32), String, String, Byte[]) | Sends a buffer to multiple clients from the server |
![]() | SendToClients(Int32[], String, String, Byte[]) | Sends a buffer to multiple clients from the server |
![]() | SendToClientsTarget(String, String, Byte[]) | Sends a buffer to all clients from the server. Only handlers on this NetworkedBehaviour will get invoked |
![]() | SendToClientsTarget(List(Int32), String, String, Byte[]) | Sends a buffer to multiple clients from the server. Only handlers on this NetworkedBehaviour gets invoked |
![]() | SendToClientsTarget(Int32[], String, String, Byte[]) | Sends a buffer to multiple clients from the server. Only handlers on this NetworkedBehaviour gets invoked |
![]() | SendToClientTarget | Sends a buffer to a client with a given clientId from Server. Only handlers on this NetworkedBehaviour gets invoked |
![]() | SendToLocalClient | Sends a buffer to the server from client |
![]() | SendToLocalClientTarget | Sends a buffer to the client that owns this object from the server. Only handlers on this NetworkedBehaviour will get invoked |
![]() | SendToNonLocalClients | Sends a buffer to all clients except to the owner object from the server |
![]() | SendToNonLocalClientsTarget | Sends a buffer to all clients except to the owner object from the server. Only handlers on this NetworkedBehaviour will get invoked |
![]() | SendToServer | Sends a buffer to the server from client |
![]() | SendToServerTarget | Sends a buffer to the server from client. Only handlers on this NetworkedBehaviour will get invoked |
![]() | StartCoroutine(IEnumerator) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine(String) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine(String, Object) | (Inherited from MonoBehaviour.) |
![]() | StartCoroutine_Auto | **Obsolete. ** (Inherited from MonoBehaviour.) |
![]() | StopAllCoroutines | (Inherited from MonoBehaviour.) |
![]() | StopCoroutine(String) | (Inherited from MonoBehaviour.) |
![]() | StopCoroutine(IEnumerator) | (Inherited from MonoBehaviour.) |
![]() | StopCoroutine(Coroutine) | (Inherited from MonoBehaviour.) |
![]() | ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
![]() | SyncVarSyncDelay | The minimum delay in seconds between SyncedVar sends |