Class SessionRecordingModule
Module responsible for recording provider data during an MR session
Namespace: Unity.MARS
Syntax
public class SessionRecordingModule : IModule, IUsesFunctionalityInjection, IFunctionalitySubscriber<IProvidesFunctionalityInjection>, IFunctionalitySubscriber
Properties
IsRecording
Declaration
public bool IsRecording { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
CancelRecording()
If recording, stops recording and discards recorded data
Declaration
public void CancelRecording()
CreateDataRecordings(TimelineAsset, List<DataRecording>, List<Object>)
Declaration
public void CreateDataRecordings(TimelineAsset timeline, List<DataRecording> dataRecordings, List<Object> newAssets)
Parameters
Type | Name | Description |
---|---|---|
TimelineAsset | timeline | |
List<DataRecording> | dataRecordings | |
List<Object> | newAssets |
LoadModule()
Declaration
public void LoadModule()
Implements
RegisterRecorderType<T>()
Registers a type of data recorder to include in the next recording
Declaration
public void RegisterRecorderType<T>()
where T : DataRecorder, new()
Type Parameters
Name | Description |
---|---|
T | Type of data recorder to register |
ToggleRecording()
If not recording, starts recording data based on registered recorder types. If recording, records any last data if needed and then stops recording data.
Declaration
public void ToggleRecording()
UnloadModule()
Declaration
public void UnloadModule()
Implements
Explicit Interface Implementations
IFunctionalitySubscriber<IProvidesFunctionalityInjection>.provider
Declaration
IProvidesFunctionalityInjection IFunctionalitySubscriber<IProvidesFunctionalityInjection>.provider { get; set; }
Returns
Type | Description |
---|---|
IProvidesFunctionalityInjection |