MLAPI/docs/T_MLAPI_NetworkingManager.md
2018-03-31 10:20:18 +02:00

18 KiB

NetworkingManager Class

The main component of the library

Inheritance Hierarchy

System.Object
  Object
    Component
      Behaviour
        MonoBehaviour
          MLAPI.NetworkingManager
Namespace: MLAPI
Assembly: MLAPI (in MLAPI.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public class NetworkingManager : MonoBehaviour

The NetworkingManager type exposes the following members.

Constructors

 

NameDescription
Public methodNetworkingManager Initializes a new instance of the NetworkingManager class
  Back to Top

Properties

 

NameDescription
Public propertyanimation **Obsolete. ** (Inherited from Component.)
Public propertyaudio **Obsolete. ** (Inherited from Component.)
Public propertycamera **Obsolete. ** (Inherited from Component.)
Public propertycollider **Obsolete. ** (Inherited from Component.)
Public propertycollider2D **Obsolete. ** (Inherited from Component.)
Public propertyConnectedClients Gets a dictionary of connected clients
Public propertyconstantForce **Obsolete. ** (Inherited from Component.)
Public propertyenabled (Inherited from Behaviour.)
Public propertygameObject (Inherited from Component.)
Public propertyguiElement **Obsolete. ** (Inherited from Component.)
Public propertyguiText **Obsolete. ** (Inherited from Component.)
Public propertyguiTexture **Obsolete. ** (Inherited from Component.)
Public propertyhideFlags (Inherited from Object.)
Public propertyhingeJoint **Obsolete. ** (Inherited from Component.)
Public propertyisActiveAndEnabled (Inherited from Behaviour.)
Public propertyIsClientConnected Gets if we are connected as a client
Public propertyisHost Gets if we are running as host
Public propertylight **Obsolete. ** (Inherited from Component.)
Public propertyMyClientId The clientId the server calls the local client by, only valid for clients
Public propertyname (Inherited from Object.)
Public propertyNetworkTime A syncronized time, represents the time in seconds since the server application started. Is replicated across all clients
Public propertynetworkView **Obsolete. ** (Inherited from Component.)
Public propertyparticleEmitter **Obsolete. ** (Inherited from Component.)
Public propertyparticleSystem **Obsolete. ** (Inherited from Component.)
Public propertyrenderer **Obsolete. ** (Inherited from Component.)
Public propertyrigidbody **Obsolete. ** (Inherited from Component.)
Public propertyrigidbody2D **Obsolete. ** (Inherited from Component.)
Public propertyrunInEditMode (Inherited from MonoBehaviour.)
Public propertyStatic membersingleton The singleton instance of the NetworkingManager
Public propertytag (Inherited from Component.)
Public propertytransform (Inherited from Component.)
Public propertyuseGUILayout (Inherited from MonoBehaviour.)
  Back to Top

Methods

 

NameDescription
Public methodBroadcastMessage(String) (Inherited from Component.)
Public methodBroadcastMessage(String, Object) (Inherited from Component.)
Public methodBroadcastMessage(String, SendMessageOptions) (Inherited from Component.)
Public methodBroadcastMessage(String, Object, SendMessageOptions) (Inherited from Component.)
Public methodCancelInvoke() (Inherited from MonoBehaviour.)
Public methodCancelInvoke(String) (Inherited from MonoBehaviour.)
Public methodCompareTag (Inherited from Component.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetComponent(Type) (Inherited from Component.)
Public methodGetComponent(String) (Inherited from Component.)
Public methodGetComponent1()</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponentInChildren(Type)</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponentInChildren(Type, Boolean)</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponentInChildren1() (Inherited from Component.)
Public methodGetComponentInChildren1(Boolean)</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponentInParent(Type)</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponentInParent1() (Inherited from Component.)
Public methodGetComponents(Type) (Inherited from Component.)
Public methodGetComponents(Type, List(Component)) (Inherited from Component.)
Public methodGetComponents1()</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponents1(List(UMP)) (Inherited from Component.)
Public methodGetComponentsInChildren(Type) (Inherited from Component.)
Public methodGetComponentsInChildren(Type, Boolean) (Inherited from Component.)
Public methodGetComponentsInChildren1()</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponentsInChildren1(Boolean) (Inherited from Component.)
Public methodGetComponentsInChildren1(List(UMP))</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponentsInChildren1(Boolean, List(UMP)) (Inherited from Component.)
Public methodGetComponentsInParent(Type) (Inherited from Component.)
Public methodGetComponentsInParent(Type, Boolean) (Inherited from Component.)
Public methodGetComponentsInParent1()</td><td> (Inherited from Component.)</td></tr><tr><td>![Public method](media/pubmethod.gif "Public method")</td><td>GetComponentsInParent1(Boolean) (Inherited from Component.)
Public methodGetComponentsInParent``1(Boolean, List(UMP)) (Inherited from Component.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInstanceID (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInvoke (Inherited from MonoBehaviour.)
Public methodInvokeRepeating (Inherited from MonoBehaviour.)
Public methodIsInvoking() (Inherited from MonoBehaviour.)
Public methodIsInvoking(String) (Inherited from MonoBehaviour.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSendMessage(String) (Inherited from Component.)
Public methodSendMessage(String, Object) (Inherited from Component.)
Public methodSendMessage(String, SendMessageOptions) (Inherited from Component.)
Public methodSendMessage(String, Object, SendMessageOptions) (Inherited from Component.)
Public methodSendMessageUpwards(String) (Inherited from Component.)
Public methodSendMessageUpwards(String, Object) (Inherited from Component.)
Public methodSendMessageUpwards(String, SendMessageOptions) (Inherited from Component.)
Public methodSendMessageUpwards(String, Object, SendMessageOptions) (Inherited from Component.)
Public methodStartClient Starts a client with a given NetworkingConfiguration
Public methodStartCoroutine(IEnumerator) (Inherited from MonoBehaviour.)
Public methodStartCoroutine(String) (Inherited from MonoBehaviour.)
Public methodStartCoroutine(String, Object) (Inherited from MonoBehaviour.)
Public methodStartCoroutine_Auto **Obsolete. ** (Inherited from MonoBehaviour.)
Public methodStartHost Starts a Host with a given NetworkingConfiguration
Public methodStartServer Starts a server with a given NetworkingConfiguration
Public methodStopAllCoroutines (Inherited from MonoBehaviour.)
Public methodStopClient Stops the running client
Public methodStopCoroutine(String) (Inherited from MonoBehaviour.)
Public methodStopCoroutine(IEnumerator) (Inherited from MonoBehaviour.)
Public methodStopCoroutine(Coroutine) (Inherited from MonoBehaviour.)
Public methodStopHost Stops the running host
Public methodStopServer Stops the running server
Public methodToString (Inherited from Object.)
  Back to Top

Fields

 

NameDescription
Public fieldDefaultPlayerPrefab The default prefab to give to players
Public fieldDontDestroy Gets or sets if the NetworkingManager should be marked as DontDestroyOnLoad
Public fieldNetworkConfig The current NetworkingConfiguration
Public fieldOnClientConnectedCallback The callback to invoke once a client connects
Public fieldOnClientDisconnectCallback The callback to invoke when a client disconnects
Public fieldOnServerStarted The callback to invoke once the server is ready
Public fieldRunInBackground Gets or sets if the application should be set to run in background
Public fieldSpawnablePrefabs A list of spawnable prefabs
  Back to Top

See Also

Reference

MLAPI Namespace