Class MeshSyncServer
A component to sync meshes/models editing in DCC tools into Unity in real time.
Inherited Members
Namespace: Unity.MeshSync
Syntax
public class MeshSyncServer : BaseMeshSync, ISerializationCallbackReceiver
Methods
InitInternalV()
Declaration
protected override void InitInternalV()
Overrides
OnAfterDeserializeMeshSyncPlayerV()
Declaration
protected override void OnAfterDeserializeMeshSyncPlayerV()
Overrides
OnBeforeSerializeMeshSyncPlayerV()
Declaration
protected override void OnBeforeSerializeMeshSyncPlayerV()
Overrides
SetAutoStartServer(Boolean)
Sets whether the server should be started automatically or not
Declaration
public void SetAutoStartServer(bool autoStart)
Parameters
Type | Name | Description |
---|---|---|
Boolean | autoStart | true if the server should start automatically; otherwise, false. |
SetOnPostRecvMessageCallback(ServerMessageCallback)
Sets a callback which will be called after MeshSyncServer receives data and finishes processing it
Declaration
public void SetOnPostRecvMessageCallback(ServerMessageCallback cb)
Parameters
Type | Name | Description |
---|---|---|
ServerMessageCallback | cb |
StartServer()
Starts the server. If the server is already running, it will be restarted.
Declaration
public void StartServer()