Table of Contents

Class FrameRecorder

命名空間
easyar
組件
EasyAR.Sense.dll

在場景中控制easyar.InputFrameRecordereasyar.VideoInputFrameRecorderMonoBehaviour,在Unity環境下提供功能擴展。

它會被自動組裝進Assembly

enabled可以控制錄製開始和結束。

[DisallowMultipleComponent]
public class FrameRecorder : MonoBehaviour
繼承
FrameRecorder

欄位

AutoStart

Session啓動後自動啓動錄製。

public bool AutoStart

Configuration

錄製配置。可以在錄製前設置(OnEnable或StartSession()之前)。

public FrameRecorder.RecordingConfiguration Configuration

OnFinish

錄製結束的事件。

public FrameRecorder.RecordFinishEvent OnFinish

OnReady

可以開始錄製的事件。

public UnityEvent OnReady

OnRecording

錄製啓動的事件。

public FrameRecorder.RecordStartEvent OnRecording

屬性

AvailableFormats

所有可用格式,根據平臺有差異。

public List<FrameRecorder.InternalFormat> AvailableFormats { get; }

RecordingFile

當前在錄製的文件的絕對路徑。

public string RecordingFile { get; }

RecordingFormat

當前在錄製的文件的格式。

public Optional<FrameRecorder.InternalFormat> RecordingFormat { get; }

Status

錄製狀態。

public FrameRecorder.RecorderStatus Status { get; }

enabled

ARSession運行時開始/停止錄製。在session啓動後,MonoBehaviour.enabled爲true時纔會開始錄製。MonoBehaviour.enabled默認爲false,且會在ARSession.Awake中設置爲AutoStart

public bool enabled { get; set; }