MLAPI API Reference

# NetworkedTransform Class
A prototype component for syncing transforms

[This is preliminary documentation and is subject to change.]

A prototype component for syncing transforms
Inheritance Hierarchy
System
Object
Object
Component
Behaviour
MonoBehaviour
MLAPI.MonoBehaviours.Core
NetworkedBehaviour
MLAPI.MonoBehaviours.Prototyping
NetworkedTransform

Namespace: MLAPI.MonoBehaviours.Prototyping
Assembly: MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy

    public class NetworkedTransform : NetworkedBehaviour

Request Example
View Source

The NetworkedTransform type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| NetworkedTransform | Initializes a new instance of the NetworkedTransform class

Top
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 (Inherited from NetworkedBehaviour.)
| isHost | Gets if we are executing as Host, I.E Server and Client (Inherited from NetworkedBehaviour.)
| isLocalPlayer | Gets if the object is the the personal clients player object (Inherited from NetworkedBehaviour.)
| isOwner | Gets if the object is owned by the local player (Inherited from NetworkedBehaviour.)
| isServer | Gets if we are executing as server (Inherited from NetworkedBehaviour.)
| light | Obsolete. (Inherited from Component.)
| name | (Inherited from Object.)
| networkedObject | Gets the NetworkedObject that owns this NetworkedBehaviour instance (Inherited from NetworkedBehaviour.)
| networkId | Gets the NetworkId of the NetworkedObject that owns the NetworkedBehaviour instance (Inherited from NetworkedBehaviour.)
| networkView | Obsolete. (Inherited from Component.)
| ownerClientId | Gets the clientId that owns the NetworkedObject (Inherited from NetworkedBehaviour.)
| 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.)

Top
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 | Deregisters a given message handler (Inherited from NetworkedBehaviour.)
| Equals | (Inherited from Object.)
| Finalize | (Inherited from Object.)
| GetComponent(Type) | (Inherited from Component.)
| GetComponent(String) | (Inherited from Component.)
| GetComponent``1 | (Inherited from Component.)
| GetComponentInChildren(Type) | (Inherited from Component.)
| GetComponentInChildren(Type, Boolean) | (Inherited from Component.)
| GetComponentInChildren``1 | (Inherited from Component.)
| GetComponentInChildren``1(Boolean) | (Inherited from Component.)
| GetComponentInParent(Type) | (Inherited from Component.)
| GetComponentInParent``1 | (Inherited from Component.)
| GetComponents(Type) | (Inherited from Component.)
| GetComponents(Type, List Component ) | (Inherited from Component.)
| GetComponents``1 | (Inherited from Component.)
| GetComponents``1(List UMP ) | (Inherited from Component.)
| GetComponentsInChildren(Type) | (Inherited from Component.)
| GetComponentsInChildren(Type, Boolean) | (Inherited from Component.)
| GetComponentsInChildren``1 | (Inherited from Component.)
| GetComponentsInChildren``1(Boolean) | (Inherited from Component.)
| GetComponentsInChildren``1(List UMP ) | (Inherited from Component.)
| GetComponentsInChildren``1(Boolean, List UMP ) | (Inherited from Component.)
| GetComponentsInParent(Type) | (Inherited from Component.)
| GetComponentsInParent(Type, Boolean) | (Inherited from Component.)
| GetComponentsInParent``1 | (Inherited from Component.)
| 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 (Inherited from NetworkedBehaviour.)
| GetType | (Inherited from Object.)
| Invoke | (Inherited from MonoBehaviour.)
| InvokeClientRpc | (Inherited from NetworkedBehaviour.)
| InvokeCommand | (Inherited from NetworkedBehaviour.)
| InvokeRepeating | (Inherited from MonoBehaviour.)
| InvokeTargetRpc | (Inherited from NetworkedBehaviour.)
| IsInvoking | (Inherited from MonoBehaviour.)
| IsInvoking(String) | (Inherited from MonoBehaviour.)
| MemberwiseClone | (Inherited from Object.)
| NetworkStart | Registers message handlers (Overrides NetworkedBehaviour NetworkStart .)
| OnGainedOwnership | Gets called when the local client gains ownership of this object (Inherited from NetworkedBehaviour.)
| OnLostOwnership | Gets called when we loose ownership of this object (Inherited from NetworkedBehaviour.)
| RegisterMessageHandler | Registers a message handler (Inherited from NetworkedBehaviour.)
| 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(UInt32, String, String, Byte ) | Sends a buffer to a client with a given clientId from Server (Inherited from NetworkedBehaviour.)
| SendToClient T (Int32, String, String, T) | Sends a binary serialized class to a client with a given clientId from Server (Inherited from NetworkedBehaviour.)
| SendToClients(String, String, Byte ) | Sends a buffer to all clients from the server (Inherited from NetworkedBehaviour.)
| SendToClients(List UInt32 , String, String, Byte ) | Sends a buffer to multiple clients from the server (Inherited from NetworkedBehaviour.)
| SendToClients( UInt32 , String, String, Byte ) | Sends a buffer to multiple clients from the server (Inherited from NetworkedBehaviour.)
| SendToClients T (String, String, T) | Sends a buffer to all clients from the server (Inherited from NetworkedBehaviour.)
| SendToClients T (List Int32 , String, String, T) | Sends a binary serialized class to multiple clients from the server (Inherited from NetworkedBehaviour.)
| SendToClients T ( Int32 , String, String, T) | Sends a binary serialized class to multiple clients from the server (Inherited from NetworkedBehaviour.)
| SendToClientsTarget(String, String, Byte ) | Sends a buffer to all clients from the server. Only handlers on this NetworkedBehaviour will get invoked (Inherited from NetworkedBehaviour.)
| SendToClientsTarget(List UInt32 , String, String, Byte ) | Sends a buffer to multiple clients from the server. Only handlers on this NetworkedBehaviour gets invoked (Inherited from NetworkedBehaviour.)
| SendToClientsTarget( UInt32 , String, String, Byte ) | Sends a buffer to multiple clients from the server. Only handlers on this NetworkedBehaviour gets invoked (Inherited from NetworkedBehaviour.)
| SendToClientsTarget T (String, String, T) | Sends a buffer to all clients from the server. Only handlers on this NetworkedBehaviour will get invoked (Inherited from NetworkedBehaviour.)
| SendToClientsTarget T (List UInt32 , String, String, T) | Sends a buffer to multiple clients from the server. Only handlers on this NetworkedBehaviour gets invoked (Inherited from NetworkedBehaviour.)
| SendToClientsTarget T ( Int32 , String, String, T) | Sends a buffer to multiple clients from the server. Only handlers on this NetworkedBehaviour gets invoked (Inherited from NetworkedBehaviour.)
| SendToClientTarget(UInt32, String, String, Byte ) | Sends a buffer to a client with a given clientId from Server. Only handlers on this NetworkedBehaviour gets invoked (Inherited from NetworkedBehaviour.)
| SendToClientTarget T (Int32, String, String, T) | Sends a buffer to a client with a given clientId from Server. Only handlers on this NetworkedBehaviour gets invoked (Inherited from NetworkedBehaviour.)
| SendToLocalClient(String, String, Byte ) | Sends a buffer to the server from client (Inherited from NetworkedBehaviour.)
| SendToLocalClient T (String, String, T) | Sends a binary serialized class to the server from client (Inherited from NetworkedBehaviour.)
| SendToLocalClientTarget(String, String, Byte ) | Sends a buffer to the client that owns this object from the server. Only handlers on this NetworkedBehaviour will get invoked (Inherited from NetworkedBehaviour.)
| SendToLocalClientTarget T (String, String, T) | Sends a buffer to the client that owns this object from the server. Only handlers on this NetworkedBehaviour will get invoked (Inherited from NetworkedBehaviour.)
| SendToNonLocalClients(String, String, Byte ) | Sends a buffer to all clients except to the owner object from the server (Inherited from NetworkedBehaviour.)
| SendToNonLocalClients T (String, String, T) | Sends a binary serialized class to all clients except to the owner object from the server (Inherited from NetworkedBehaviour.)
| SendToNonLocalClientsTarget(String, String, Byte ) | Sends a buffer to all clients except to the owner object from the server. Only handlers on this NetworkedBehaviour will get invoked (Inherited from NetworkedBehaviour.)
| SendToNonLocalClientsTarget T (String, String, T) | Sends a binary serialized class to all clients except to the owner object from the server. Only handlers on this NetworkedBehaviour will get invoked (Inherited from NetworkedBehaviour.)
| SendToServer(String, String, Byte ) | Sends a buffer to the server from client (Inherited from NetworkedBehaviour.)
| SendToServer T (String, String, T) | Sends a binary serialized class to the server from client (Inherited from NetworkedBehaviour.)
| SendToServerTarget(String, String, Byte ) | Sends a buffer to the server from client. Only handlers on this NetworkedBehaviour will get invoked (Inherited from NetworkedBehaviour.)
| SendToServerTarget T (String, String, T) | Sends a binary serialized class to the server from client. Only handlers on this NetworkedBehaviour will get invoked (Inherited from NetworkedBehaviour.)
| 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.)

Top
Fields

| Name | Description
--- | --- | ---
| AssumeSyncedSends | Is the sends per second assumed to be the same across all instances
| EnableProximity | Should proximity be enabled
| InterpolatePosition | Enable interpolation
| InterpolateServer | Should the server interpolate
| MinDegrees | The min degrees to rotate before a send it sent
| MinMeters | The min meters to move before a send is sent
| ProximityRange | The distance to use for proximity
| SendsPerSecond | Sends per second
| SnapDistance | The distance before snaping to the position
| SyncVarSyncDelay | The minimum delay in seconds between SyncedVar sends (Inherited from NetworkedBehaviour.)

Top
See Also

#### Reference

MLAPI.MonoBehaviours.Prototyping Namespace