Class StateRecorder
Utility component that can be used to record state received by StateReceiverBackends into a file that may later be used for playing the state back using the ReplayStateReceiverBackend. Recording is automatically stopped when the component is disabled.
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.StateReceivers.dll
Syntax
[HelpURL("http://localhost:8080/api/Holoride.ElasticSDK.StateRecorder.html")]
public class StateRecorder : MonoBehaviour
Methods
StartRecording()
Start a new recording.
Will stop any currently running recording first.
The recording will be stored in a file inside Unity's persistent data folder, named by the time stamp the recording starts at.
Declaration
public void StartRecording()
StartRecording(string)
Start a new recording.
Will stop any currently running recording first.
Declaration
public void StartRecording(string filePath)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | The path to the file to store the recording in. |
StopRecording()
Stops the currently running recording, if any.
Declaration
public void StopRecording()