Class MeshSyncServer
A component to sync meshes/models editing in DCC tools into Unity in real time.
Inherited Members
Namespace: Unity.MeshSync
Syntax
[ExecuteAlways]
public class MeshSyncServer : BaseMeshSync, IObservable<MeshSyncAnalyticsData>, ISerializationCallbackReceiver, IDisposable
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
Dispose()
Declaration
public void Dispose()
IsDCCLiveEditReady()
True when the connection to the DCC tool to send data is active.
Declaration
public bool IsDCCLiveEditReady()
Returns
Type | Description |
---|---|
Boolean |
OnDestroy()
Declaration
protected override void OnDestroy()
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. |
StartServer()
Starts the server. If the server is already running, it will be restarted.
Declaration
public void StartServer()