Table of Contents

Class FrameRecorder

Ruang Nama
easyar
Rakitan
EasyAR.Sense.dll

MonoBehaviour yang mengontrol easyar.InputFrameRecorder dan easyar.VideoInputFrameRecorder di scene serta menyediakan ekstensi fungsi di lingkungan Unity.

Ini akan otomatis dirakit ke dalam Assembly.

enabled dapat mengontrol mulai dan berhentinya perekaman.

[DisallowMultipleComponent]
public class FrameRecorder : MonoBehaviour
Pewarisan
FrameRecorder

Bidang

AutoStart

Otomatis memulai perekaman setelah Session dimulai.

public bool AutoStart

Configuration

Konfigurasi perekaman. Dapat diatur sebelum perekaman, sebelum OnEnable atau StartSession().

public FrameRecorder.RecordingConfiguration Configuration

OnFinish

Event ketika perekaman berakhir.

public FrameRecorder.RecordFinishEvent OnFinish

OnReady

Event ketika perekaman dapat dimulai.

public UnityEvent OnReady

OnRecording

Event ketika perekaman dimulai.

public FrameRecorder.RecordStartEvent OnRecording

Properti

AvailableFormats

Semua format yang tersedia, berbeda menurut platform.

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

RecordingFile

Path absolut file yang sedang direkam.

public string RecordingFile { get; }

RecordingFormat

Format file yang sedang direkam.

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

Status

Status perekaman.

public FrameRecorder.RecorderStatus Status { get; }

enabled

Memulai/menghentikan perekaman saat ARSession berjalan. Setelah session dimulai, perekaman hanya dimulai ketika MonoBehaviour.enabled bernilai true. MonoBehaviour.enabled default-nya false dan akan diatur ke AutoStart dalam ARSession.Awake.

public bool enabled { get; set; }