# ARCoreRecordingConfig

Configuration to record camera and sensor data from an ARCore session.

## Summary

### Inheritance

Inherits from: [`UnityEngine::ScriptableObject`](https://docs.unity3d.com/ScriptReference/ScriptableObject.html)

| ### Public attributes ||
|---|---|
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/ARCoreRecordingConfig#autostoponpause = true` | `bool` Set to `true` to cause the recording to stop automatically when the session is paused, or set to `false` to allow the recording to continue until the session is destroyed or the recording is stopped manually. |
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/ARCoreRecordingConfig#mp4dataseturi` | `https://docs.microsoft.com/en-us/dotnet/api/System.Uri` A URI where the MP4 recording (including video data from the camera and other device sensors) will be saved. |
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/ARCoreRecordingConfig#tracks = new List()` | `List< https://developers.google.com/ar/reference/unity-arf/struct/Google/XR/ARCoreExtensions/Track#structGoogle_1_1XR_1_1ARCoreExtensions_1_1Track >` The list of `https://developers.google.com/ar/reference/unity-arf/struct/Google/XR/ARCoreExtensions/Track#structGoogle_1_1XR_1_1ARCoreExtensions_1_1Track` to add the recording config. |

| ### Properties ||
|---|---|
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/ARCoreRecordingConfig#mp4datasetfilepath` | `string` **[Deprecated.](https://developers.google.com/ar/reference/unity-arf/deprecated/deprecated)** Please use Mp4DatasetUri instead. Gets or sets the URI on the device where the MP4 recording will be saved as a file path. |

## Public attributes

### AutoStopOnPause

```c#
bool AutoStopOnPause = true
```
Set to `true` to cause the recording to stop automatically when the session is paused, or set to `false` to allow the recording to continue until the session is destroyed or the recording is stopped manually.

When set to `false` and the session is paused, recording of sensor data continues, but the camera feed will be recorded as a black screen until the session is resumed.

### Mp4DatasetUri

```c#
Uri Mp4DatasetUri
```
A URI where the MP4 recording (including video data from the camera and other device sensors) will be saved.

If the resource already exists it will be overwritten. The `AbsoluteUri` property of the Uri will be passed to ARCore to create an `android.net.Uri`. The URI must point to a seekable resource.

### Tracks

```c#
List< Track > Tracks = new List()
```
The list of `https://developers.google.com/ar/reference/unity-arf/struct/Google/XR/ARCoreExtensions/Track#structGoogle_1_1XR_1_1ARCoreExtensions_1_1Track` to add the recording config.

This field is not available in the editor and should be set at runtime.

## Properties

### Mp4DatasetFilepath

```c#
string Mp4DatasetFilepath
```
Gets or sets the URI on the device where the MP4 recording will be saved as a file path.

The recording consists of video data from the camera along with data from the device sensors. If the file already exists it will be overwritten.

**[Deprecated.](https://developers.google.com/ar/reference/unity-arf/deprecated/deprecated)**Please use Mp4DatasetUri instead.