Class Server
The base class for servers that can be managed in the Live Capture window.
Namespace: Unity.LiveCapture
Syntax
public abstract class Server : ScriptableObject
Remarks
Servers are instantiated using the ServerManager, which will serializes servers to the Library folder.
Methods
GetName()
Gets the display name for this server.
Declaration
public abstract string GetName()
Returns
Type | Description |
---|---|
String | A string containing the name of the server. |
OnDisable()
Called when the server is being destroyed.
Declaration
protected virtual void OnDisable()
OnEnable()
Called when the server is created.
Declaration
protected virtual void OnEnable()
OnServerChanged(Boolean)
Call this when the server's state or serialized data has been modified.
Declaration
protected void OnServerChanged(bool save)
Parameters
Type | Name | Description |
---|---|---|
Boolean | save | Should the server's serialized data be re-written to disk. |
Remarks
This triggers a refresh of the server GUI.
OnUpdate()
The method which is called regularly to update the server.
Declaration
public virtual void OnUpdate()
OnValidate()
Called when the server's serialized fields have been changed from the inspector.
Declaration
protected virtual void OnValidate()