Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CreateAsync

Asynchronously creates an instance of a VideoCapture object that can be used to record videos from the web camera to disk.
Read time 1 minuteLast updated 11 days ago

Definition

CreateAsync(bool, OnVideoCaptureResourceCreatedCallback)

Asynchronously creates an instance of a VideoCapture object that can be used to record videos from the web camera to disk.
public static void CreateAsync(bool showHolograms, VideoCapture.OnVideoCaptureResourceCreatedCallback onCreatedCallback)

Parameters

showHolograms

Allows capturing holograms in your video.

This callback will be invoked when the VideoCapture instance is created and ready to be used.

Remarks

If the instance failed to be created, the instance returned will be null.

CreateAsync(OnVideoCaptureResourceCreatedCallback)

Asynchronously creates an instance of a VideoCapture object that can be used to record videos from the web camera to disk.
public static void CreateAsync(VideoCapture.OnVideoCaptureResourceCreatedCallback onCreatedCallback)

Parameters

This callback will be invoked when the VideoCapture instance is created and ready to be used.

Remarks

If the instance failed to be created, the instance returned will be null.