Struct ArSession
Represents the context for an ARCore session.
Implements
Inherited Members
Namespace: UnityEngine.XR.ARCore
Assembly: solution.dll
Syntax
public struct ArSession : IEquatable<ArSession>
Remarks
This is an opaque object that represents a native ArSession.
Properties
Name | Description |
---|---|
IsNull | (Read Only) Indicates whether this ArSession is |
Null | Represents a null ArSession, i.e., one whose underlying native pointer is |
playbackStatus | (Read Only) The playback status. |
recordingStatus | (Read Only) The current recording status. |
Methods
Name | Description |
---|---|
AsIntPtr() | Gets the underlying native pointer for this ArSession. |
Equals(object) | Tests for equality. |
Equals(ArSession) | Tests for equality. |
FromIntPtr(IntPtr) | Creates an ArSession from an existing native pointer. The native pointer must point to an existing ArSession. |
GetHashCode() | Generates a hash code suitable for use with a |
SetPlaybackDataset(string) | Sets an MP4 dataset file to playback instead of live camera feed. |
StartRecording(ArRecordingConfig) | Starts a new MP4 dataset file recording that is written to the specific filesystem path. |
StopRecording() | Stops recording and flushes unwritten data to disk. The MP4 dataset file is ready to read after this call. |
Operators
Name | Description |
---|---|
operator ==(ArSession?, ArSession?) | Tests for equality. |
operator ==(ArSession, ArSession) | Tests for equality. Same as Equals(ArSession). |
explicit operator IntPtr(ArSession) | Casts an ArSession to its underlying native pointer. |
operator !=(ArSession?, ArSession?) | Tests for inequality. |
operator !=(ArSession, ArSession) | Tests for inequality. Same as the negation of Equals(ArSession). |