Struct XRTrackedObject
Describes a tracked object detected by the XRObjectTrackingSubsystem.
Inherited Members
Namespace: UnityEngine.XR.ARSubsystems
Assembly: solution.dll
Syntax
public struct XRTrackedObject : ITrackable, IEquatable<XRTrackedObject>
Remarks
Tracked objects are detected based on the contents of an XRReferenceObjectLibrary which contains reference objects for which to scan. Each XRTrackedObject represents an XRReferenceObject which has been detected in the environment.
Constructors
Name | Description |
---|---|
XRTrackedObject(TrackableId, Pose, TrackingState, IntPtr, Guid) | Constructs an XRTrackedObject. |
Properties
Name | Description |
---|---|
defaultValue | A XRTrackedObject with appropriate default values. |
nativePtr | A native pointer associated with this tracked object. |
pose | The |
referenceObjectGuid | The |
trackableId | The TrackableId associated with this tracked object. |
trackingState | The TrackingState associated with this tracked object. |
Methods
Name | Description |
---|---|
Equals(object) | Tests for equality. |
Equals(XRTrackedObject) | Tests for equality. |
GetHashCode() | Generates a hash suitable for use with containers like |
Operators
Name | Description |
---|---|
operator ==(XRTrackedObject, XRTrackedObject) | Tests for equality. Same as Equals(XRTrackedObject). |
operator !=(XRTrackedObject, XRTrackedObject) | Tests for inequality. Same as |