docs.unity3d.com
    Show / Hide Table of Contents

    Class MarsRecordingPlaybackModule

    Module that controls playback of a session recording Timeline in Simulation

    Inheritance
    Object
    MarsRecordingPlaybackModule
    Namespace: UnityEditor.MARS.Simulation
    Syntax
    public class MarsRecordingPlaybackModule : EditorScriptableSettings<MarsRecordingPlaybackModule>, IModuleDependency<QuerySimulationModule>, IModuleDependency<MARSSceneModule>, IModuleDependency<SimulationRecordingManager>, IModuleMarsUpdate, IModule, IModuleBehaviorCallbacks

    Fields

    AutoSyncTooltip

    Tooltip for when auto sync is enabled

    Declaration
    public const string AutoSyncTooltip = null
    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
    Boolean

    IsRecordingAvailable

    Whether Simulation is currently using a session recording

    Declaration
    public bool IsRecordingAvailable { get; }
    Property Value
    Type Description
    Boolean

    IsRecordingPaused

    Whether there is an active session recording for Simulation and it is currently paused

    Declaration
    public bool IsRecordingPaused { get; }
    Property Value
    Type Description
    Boolean

    IsRecordingPlaying

    Whether the session recording for Simulation is currently playing

    Declaration
    public bool IsRecordingPlaying { get; }
    Property Value
    Type Description
    Boolean

    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
    Single

    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

    Explicit Interface Implementations

    IModuleMarsUpdate.OnMarsUpdate()

    Called at fixed intervals while the MARS lifecycle is running

    Declaration
    void IModuleMarsUpdate.OnMarsUpdate()
    Implements
    IModuleMarsUpdate.OnMarsUpdate()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023