docs.unity3d.com
    显示 / 隐藏目录

    Class MarsRecordingPlaybackModule

    Module that controls playback of a session recording Timeline in Simulation

    Inheritance
    Object
    ScriptableSettingsBase
    ScriptableSettingsBase<MarsRecordingPlaybackModule>
    EditorScriptableSettings<MarsRecordingPlaybackModule>
    MarsRecordingPlaybackModule
    Inherited Members
    EditorScriptableSettings<MarsRecordingPlaybackModule>.instance
    ScriptableSettingsBase<MarsRecordingPlaybackModule>.k_HasCustomPath
    ScriptableSettingsBase<MarsRecordingPlaybackModule>.s_Instance
    ScriptableSettingsBase<MarsRecordingPlaybackModule>.Save(String)
    ScriptableSettingsBase<MarsRecordingPlaybackModule>.GetFilePath()
    ScriptableSettingsBase.k_PathExceptionMessage
    ScriptableSettingsBase.GetInstanceByType(Type)
    ScriptableSettingsBase.OnLoaded()
    Namespace: Unity.MARS.Recording
    Syntax
    [ScriptableSettingsPath("Assets/MARS/UserSettings")]
    public class MarsRecordingPlaybackModule : EditorScriptableSettings<MarsRecordingPlaybackModule>, IModuleDependency<QuerySimulationModule>, IModuleDependency<MARSSceneModule>, IModuleDependency<SimulationRecordingManager>, IModuleMarsUpdate, IModuleBehaviorCallbacks, IModule

    Fields

    AutoSyncTooltip

    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
    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

    Methods

    ConnectDependency(MARSSceneModule)

    Declaration
    public void ConnectDependency(MARSSceneModule dependency)
    Parameters
    Type Name Description
    MARSSceneModule dependency
    Implements
    IModuleDependency<T>.ConnectDependency(T)

    ConnectDependency(QuerySimulationModule)

    Declaration
    public void ConnectDependency(QuerySimulationModule dependency)
    Parameters
    Type Name Description
    QuerySimulationModule dependency
    Implements
    IModuleDependency<T>.ConnectDependency(T)

    ConnectDependency(SimulationRecordingManager)

    Declaration
    public void ConnectDependency(SimulationRecordingManager dependency)
    Parameters
    Type Name Description
    SimulationRecordingManager dependency
    Implements
    IModuleDependency<T>.ConnectDependency(T)

    LoadModule()

    Declaration
    public void LoadModule()
    Implements
    IModule.LoadModule()

    OnBehaviorAwake()

    Declaration
    public void OnBehaviorAwake()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorAwake()

    OnBehaviorDestroy()

    Declaration
    public void OnBehaviorDestroy()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDestroy()

    OnBehaviorDisable()

    Declaration
    public void OnBehaviorDisable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorDisable()

    OnBehaviorEnable()

    Declaration
    public void OnBehaviorEnable()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorEnable()

    OnBehaviorStart()

    Declaration
    public void OnBehaviorStart()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorStart()

    OnBehaviorUpdate()

    Declaration
    public void OnBehaviorUpdate()
    Implements
    IModuleBehaviorCallbacks.OnBehaviorUpdate()

    OnMarsUpdate()

    Declaration
    public void OnMarsUpdate()
    Implements
    IModuleMarsUpdate.OnMarsUpdate()

    UnloadModule()

    Declaration
    public void UnloadModule()
    Implements
    IModule.UnloadModule()

    Events

    RecordingEndReached

    Called when recording playback has reached the end of the Timeline

    Declaration
    public event Action RecordingEndReached
    Event Type
    Type Description
    Action
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)