CreateAsync
Asynchronously creates an instance of a VideoCapture object that can be used to record videos from the web camera to disk.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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.