# CreateAsync

> Asynchronously creates an instance of a VideoCapture object that can be used to record videos from the web camera to disk.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Windows.WebCam](/engine/6000.3/script-reference/unityengine/windows/webcam.md)
* **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.

```csharp
public static void CreateAsync(bool showHolograms, VideoCapture.OnVideoCaptureResourceCreatedCallback onCreatedCallback)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Allows capturing holograms in your video.**** (\[OnVideoCaptureResourceCreatedCallback]\(/engine/6000.3/script-reference/unityengine/windows/webcam/videocapture/onvideocaptureresourcecreatedcallback)): 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.

```csharp
public static void CreateAsync(VideoCapture.OnVideoCaptureResourceCreatedCallback onCreatedCallback)
```

### Parameters

**** (\[OnVideoCaptureResourceCreatedCallback]\(/engine/6000.3/script-reference/unityengine/windows/webcam/videocapture/onvideocaptureresourcecreatedcallback)): 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.
