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 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Windows.WebCam
- Assembly: UnityEngine.CoreModule
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
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.