Struct ArRecordingConfig
A recording configuration struct that contains the configuration for session recording.
See Start
Inherited Members
Namespace: UnityEngine .XR.ARCore
Assembly: solution.dll
Syntax
public struct ArRecordingConfig : IEquatable<ArRecordingConfig>, IDisposable
Remarks
A Arusing
statement for
convenience:
void RecordExample(ARCoreSessionSubsystem subsystem, string mp4Path)
{
var session = subsystem.session;
using (var config = new ArRecordingConfig(session))
{
config.SetMp4DatasetFilePath(session, mp4Path);
config.SetRecordingRotation(session, 90);
config.SetAutoStopOnPause(session, false);
var status = subsystem.StartRecording(config);
Debug.Log($"StartRecording to {config.GetMp4DatasetFilePath(session)} => {status}");
}
}
This is a C# wrapper for ARCore's native ArRecordingConfig
Constructors
Name | Description |
---|---|
Ar |
Creates a dataset recording config object. This object must be disposed with Dispose(). |
Methods
Name | Description |
---|---|
As |
Gets the underlying native pointer for this Ar |
Dispose() | Releases memory used by this recording config object. |
Equals(object) | Tests for equality. |
Equals(Ar |
Tests for equality. |
From |
Create a Ar |
Get |
Gets the setting that indicates whether this recording should stop automatically when the ARCore session is paused. |
Get |
Generates a hash code suitable for use with a |
Get |
Gets the file path to save an MP4 dataset file for this recording. |
Get |
Gets the clockwise rotation in degrees that should be applied to the recorded image. |
Set |
Sets whether this recording should stop automatically when the ARCore session is paused. |
Set |
Sets the file path to save an MP4 dataset file for the recording. |
Set |
Specifies the clockwise rotation in degrees that should be applied to the recorded image. |
Operators
Name | Description |
---|---|
operator ==(Ar |
Tests for equality. |
operator ==(Ar |
Tests for equality. Same as Equals(Ar |
explicit operator Int |
Casts an Ar |
operator !=(Ar |
Tests for inequality. |
operator !=(Ar |
Tests for inequality. Same as the negation of Equals(Ar |