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

    Class DataRecorder

    Records data from an MR session

    Inheritance
    Object
    DataRecorder
    CameraPoseRecorder
    PlaneFindingRecorder
    PointCloudRecorder
    FaceTrackingRecorder
    FacialExpressionsRecorder
    Namespace: Unity.MARS
    Syntax
    public abstract class DataRecorder

    Properties

    IsRecording

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

    TimeFromStart

    Time since the start of recording

    Declaration
    protected float TimeFromStart { get; }
    Property Value
    Type Description
    Single

    Methods

    CancelRecording()

    If recording, stops recording data

    Declaration
    public void CancelRecording()

    FinalizeRecording()

    Records any last data if needed before tear down

    Declaration
    protected virtual void FinalizeRecording()

    Setup()

    Setup upon the start of recording

    Declaration
    protected virtual void Setup()

    TearDown()

    Tear down upon the end of recording. MR data is not guaranteed to exist upon tear down, so this method should not record any data.

    Declaration
    protected virtual void TearDown()

    ToggleRecording()

    If not recording, starts recording data. If recording, records any last data if needed and then stops recording data.

    Declaration
    public void ToggleRecording()

    TryCreateDataRecording(TimelineAsset, List<Object>)

    Try to add recorded data to a Timeline and create an object that references this recorded data

    Declaration
    public abstract DataRecording TryCreateDataRecording(TimelineAsset timeline, List<Object> newAssets)
    Parameters
    Type Name Description
    TimelineAsset timeline

    The Timeline that holds recorded data

    List<Object> newAssets

    List to be filled out with newly created Assets other than the Data Recording

    Returns
    Type Description
    DataRecording

    Object that references Timeline data for the recording, or null if creation fails

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