Class MeshSyncServer
A component to sync meshes/models editing in DCC tools into Unity in real time.
Inherited Members
Namespace: Unity.MeshSync
Syntax
[ExecuteInEditMode]
public class MeshSyncServer : BaseMeshSync, ISerializationCallbackReceiver
Fields
OnPostRecvMessageCallback
Callback which will be called after MeshSyncServer receives data and finishes processing it
Declaration
public ServerMessageCallback OnPostRecvMessageCallback
Field Value
Type | Description |
---|---|
ServerMessageCallback |
Methods
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. |
StartServer()
Starts the server. If the server is already running, it will be restarted.
Declaration
public void StartServer()