Class MarsRecordingPlaybackModule
Module that controls playback of a session recording Timeline in Simulation
Inheritance
Implements
Inherited Members
Namespace: UnityEditor.MARS.Simulation
Assembly: Unity.MARS.Editor.dll
Syntax
[ScriptableSettingsPath("Assets/MARS/UserSettings")]
[MovedFrom("Unity.MARS.Recording")]
public class MarsRecordingPlaybackModule : EditorScriptableSettings<MarsRecordingPlaybackModule>, IModuleDependency<QuerySimulationModule>, IModuleDependency<MARSSceneModule>, IModuleDependency<SimulationRecordingManager>, IModuleMarsUpdate, IModuleBehaviorCallbacks, IModule
Fields
AutoSyncTooltip
Tooltip for when auto sync is enabled
Declaration
public const string AutoSyncTooltip = "When enabled, Simulation will automatically restart when the time in the session recording Timeline is changed"
Field Value
Type | Description |
---|---|
string |
Properties
AutoSyncWithTimeChanges
Whether Simulation should automatically restart when the time in the session recording Timeline is changed
Declaration
public bool AutoSyncWithTimeChanges { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsRecordingAvailable
Whether Simulation is currently using a session recording
Declaration
public bool IsRecordingAvailable { get; }
Property Value
Type | Description |
---|---|
bool |
IsRecordingPaused
Whether there is an active session recording for Simulation and it is currently paused
Declaration
public bool IsRecordingPaused { get; }
Property Value
Type | Description |
---|---|
bool |
IsRecordingPlaying
Whether the session recording for Simulation is currently playing
Declaration
public bool IsRecordingPlaying { get; }
Property Value
Type | Description |
---|---|
bool |
SyncEndTime
The time at which Simulation finishes syncing with the Timeline. This is the time in the Timeline at the moment before Simulation automatically restarted.
Declaration
public double SyncEndTime { get; }
Property Value
Type | Description |
---|---|
double |
TimelineSyncProgress
Progress of time while Simulation is syncing with the Timeline. This is a value between 0 and 1 where 0 means Simulation has just started syncing and time is 0, and 1 means Simulation is done syncing and time is SyncEndTime.
Declaration
public float TimelineSyncProgress { get; }
Property Value
Type | Description |
---|---|
float |
TimelineSyncState
The state of Simulation in relation to the current time in the session recording Timeline
Declaration
public SimulationTimeSyncState TimelineSyncState { get; }
Property Value
Type | Description |
---|---|
SimulationTimeSyncState |
Events
RecordingEndReached
Called when recording playback has reached the end of the Timeline
Declaration
public event Action RecordingEndReached
Event Type
Type | Description |
---|---|
Action |