NetworkedBehaviour NetworkedObject NetworkingManager RpcMethod RpcMethod<T1> RpcMethod<T1,T2> RpcMethod<T1,T2,T3> RpcMethod<T1,T2,T3,T4> RpcMethod<T1,T2,T3,T4,T5> RpcMethod<T1,T2,T3,T4,T5,T6> RpcMethod<T1,T2,T3,T4,T5,T6,T7> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31> RpcMethod<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32> ResponseRpcMethod<TResult> ResponseRpcMethod<TResult,T1> ResponseRpcMethod<TResult,T1,T2> ResponseRpcMethod<TResult,T1,T2,T3> ResponseRpcMethod<TResult,T1,T2,T3,T4> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31> ResponseRpcMethod<TResult,T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17,T18,T19,T20,T21,T22,T23,T24,T25,T26,T27,T28,T29,T30,T31,T32> VisibilityDelegate ConnectionApprovedDelegate CustomMessageDelegete

UnetTransport class

Namespace: MLAPI.Transports.UNET

Assembly: MLAPI.dll

Public Properties

public ulong ServerClientId { get; }


Inherited Properties

public bool useGUILayout { get; set; }

Inherited from: MonoBehaviour

public bool runInEditMode { get; set; }

Inherited from: MonoBehaviour

public bool enabled { get; set; }

Inherited from: Behaviour

public bool isActiveAndEnabled { get; }

Inherited from: Behaviour

public Transform transform { get; }

Inherited from: Component

public GameObject gameObject { get; }

Inherited from: Component

public string tag { get; set; }

Inherited from: Component

public Component rigidbody { get; } Obsolete

Inherited from: Component

public Component rigidbody2D { get; } Obsolete

Inherited from: Component

public Component camera { get; } Obsolete

Inherited from: Component

public Component light { get; } Obsolete

Inherited from: Component

public Component animation { get; } Obsolete

Inherited from: Component

public Component constantForce { get; } Obsolete

Inherited from: Component

public Component renderer { get; } Obsolete

Inherited from: Component

public Component audio { get; } Obsolete

Inherited from: Component

public Component guiText { get; } Obsolete

Inherited from: Component

public Component networkView { get; } Obsolete

Inherited from: Component

public Component guiElement { get; } Obsolete

Inherited from: Component

public Component guiTexture { get; } Obsolete

Inherited from: Component

public Component collider { get; } Obsolete

Inherited from: Component

public Component collider2D { get; } Obsolete

Inherited from: Component

public Component hingeJoint { get; } Obsolete

Inherited from: Component

public Component particleEmitter { get; } Obsolete

Inherited from: Component

public Component particleSystem { get; } Obsolete

Inherited from: Component

public string name { get; set; }

Inherited from: Object

public HideFlags hideFlags { get; set; }

Inherited from: Object


Public Fields

public int MessageBufferSize;

public int MaxConnections;

public string ConnectAddress;

public int ConnectPort;

public int ServerListenPort;

public int ServerWebsocketListenPort;

public bool SupportWebsocket;

public List<UnetChannel> Channels;

public bool UseMLAPIRelay;

public string MLAPIRelayAddress;

public int MLAPIRelayPort;


Public Constructors

public UnetTransport();


Public Methods

public void Send(ulong clientId, ArraySegment<byte> data, string channelName, bool skipQueue);

Parameters

ulong clientId

ArraySegment<byte> data

string channelName

bool skipQueue


public void FlushSendQueue(ulong clientId);

Parameters

ulong clientId


public NetEventType PollEvent(UInt64& clientId, String& channelName, ArraySegment`1& payload);

Parameters

UInt64& clientId

String& channelName

ArraySegment`1& payload


public void StartClient();


public void StartServer();


public void DisconnectRemoteClient(ulong clientId);

Parameters

ulong clientId


public void DisconnectLocalClient();


public ulong GetCurrentRtt(ulong clientId);

Parameters

ulong clientId


public void Shutdown();


public void Init();


public ulong GetMLAPIClientId(byte hostId, ushort connectionId, bool isServer);

Parameters

byte hostId

ushort connectionId

bool isServer


public void GetUnetConnectionDetails(ulong clientId, Byte& hostId, UInt16& connectionId);

Parameters

ulong clientId

Byte& hostId

UInt16& connectionId


public ConnectionConfig GetConfig();


public int AddMLAPIChannel(ChannelType type, ConnectionConfig config);

Parameters

ConnectionConfig config


public int AddUNETChannel(QosType type, ConnectionConfig config);

Parameters

QosType type

ConnectionConfig config



Inherited Methods

public bool IsInvoking();

Inherited from: MonoBehaviour

public void CancelInvoke();

Inherited from: MonoBehaviour

public void Invoke(string methodName, float time);

Inherited from: MonoBehaviour
Parameters

string methodName

float time


public void InvokeRepeating(string methodName, float time, float repeatRate);

Inherited from: MonoBehaviour
Parameters

string methodName

float time

float repeatRate


public void CancelInvoke(string methodName);

Inherited from: MonoBehaviour
Parameters

string methodName


public bool IsInvoking(string methodName);

Inherited from: MonoBehaviour
Parameters

string methodName


public Coroutine StartCoroutine(string methodName);

Inherited from: MonoBehaviour
Parameters

string methodName


public Coroutine StartCoroutine(string methodName, object value);

Inherited from: MonoBehaviour
Parameters

string methodName

object value


public Coroutine StartCoroutine(IEnumerator routine);

Inherited from: MonoBehaviour
Parameters

IEnumerator routine


public Coroutine StartCoroutine_Auto(IEnumerator routine); Obsolete

Inherited from: MonoBehaviour
Parameters

IEnumerator routine


public void StopCoroutine(IEnumerator routine);

Inherited from: MonoBehaviour
Parameters

IEnumerator routine


public void StopCoroutine(Coroutine routine);

Inherited from: MonoBehaviour
Parameters

Coroutine routine


public void StopCoroutine(string methodName);

Inherited from: MonoBehaviour
Parameters

string methodName


public void StopAllCoroutines();

Inherited from: MonoBehaviour

public Component GetComponent(Type type);

Inherited from: Component
Parameters

Type type


public T GetComponent();

Inherited from: Component

public Component GetComponent(string type);

Inherited from: Component
Parameters

string type


public Component GetComponentInChildren(Type t, bool includeInactive);

Inherited from: Component
Parameters

Type t

bool includeInactive


public Component GetComponentInChildren(Type t);

Inherited from: Component
Parameters

Type t


public T GetComponentInChildren(bool includeInactive);

Inherited from: Component
Parameters

bool includeInactive


public T GetComponentInChildren();

Inherited from: Component

public Component[] GetComponentsInChildren(Type t, bool includeInactive);

Inherited from: Component
Parameters

Type t

bool includeInactive


public Component[] GetComponentsInChildren(Type t);

Inherited from: Component
Parameters

Type t


public T[] GetComponentsInChildren(bool includeInactive);

Inherited from: Component
Parameters

bool includeInactive


public void GetComponentsInChildren(bool includeInactive, List<T> result);

Inherited from: Component
Parameters

bool includeInactive

List<T> result


public T[] GetComponentsInChildren();

Inherited from: Component

public void GetComponentsInChildren(List<T> results);

Inherited from: Component
Parameters

List<T> results


public Component GetComponentInParent(Type t);

Inherited from: Component
Parameters

Type t


public T GetComponentInParent();

Inherited from: Component

public Component[] GetComponentsInParent(Type t, bool includeInactive);

Inherited from: Component
Parameters

Type t

bool includeInactive


public Component[] GetComponentsInParent(Type t);

Inherited from: Component
Parameters

Type t


public T[] GetComponentsInParent(bool includeInactive);

Inherited from: Component
Parameters

bool includeInactive


public void GetComponentsInParent(bool includeInactive, List<T> results);

Inherited from: Component
Parameters

bool includeInactive

List<T> results


public T[] GetComponentsInParent();

Inherited from: Component

public Component[] GetComponents(Type type);

Inherited from: Component
Parameters

Type type


public void GetComponents(Type type, List<Component> results);

Inherited from: Component
Parameters

Type type

List<Component> results


public void GetComponents(List<T> results);

Inherited from: Component
Parameters

List<T> results


public T[] GetComponents();

Inherited from: Component

public bool CompareTag(string tag);

Inherited from: Component
Parameters

string tag


public void SendMessageUpwards(string methodName, object value, SendMessageOptions options);

Inherited from: Component
Parameters

string methodName

object value

SendMessageOptions options


public void SendMessageUpwards(string methodName, object value);

Inherited from: Component
Parameters

string methodName

object value


public void SendMessageUpwards(string methodName);

Inherited from: Component
Parameters

string methodName


public void SendMessageUpwards(string methodName, SendMessageOptions options);

Inherited from: Component
Parameters

string methodName

SendMessageOptions options


public void SendMessage(string methodName, object value);

Inherited from: Component
Parameters

string methodName

object value


public void SendMessage(string methodName);

Inherited from: Component
Parameters

string methodName


public void SendMessage(string methodName, object value, SendMessageOptions options);

Inherited from: Component
Parameters

string methodName

object value

SendMessageOptions options


public void SendMessage(string methodName, SendMessageOptions options);

Inherited from: Component
Parameters

string methodName

SendMessageOptions options


public void BroadcastMessage(string methodName, object parameter, SendMessageOptions options);

Inherited from: Component
Parameters

string methodName

object parameter

SendMessageOptions options


public void BroadcastMessage(string methodName, object parameter);

Inherited from: Component
Parameters

string methodName

object parameter


public void BroadcastMessage(string methodName);

Inherited from: Component
Parameters

string methodName


public void BroadcastMessage(string methodName, SendMessageOptions options);

Inherited from: Component
Parameters

string methodName

SendMessageOptions options


public int GetInstanceID();

Inherited from: Object

public int GetHashCode();

Inherited from: Object

public bool Equals(object other);

Inherited from: Object
Parameters

object other


public string ToString();

Inherited from: Object

public Type GetType();

Inherited from: object