Class ARTrackedObject
Represents a tracked object in the physical environment.
Inheritance
ARTrackedObject
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.XR.ARFoundation
Syntax
[DefaultExecutionOrder(-2147483646)]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/api/UnityEngine.XR.ARFoundation.ARTrackedObject.html")]
public class ARTrackedObject : ARTrackable<XRTrackedObject, ARTrackedObject>
Properties
nativePtr
Get a native pointer associated with this tracked object.
Declaration
public IntPtr nativePtr { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Remarks
The data pointed to by this member is implementation defined. The lifetime of the pointed to object is also implementation defined, but should be valid at least until the next ARSession update.
referenceObject
The reference object which was used to detect this object in the environment.
Declaration
public XRReferenceObject referenceObject { get; }
Property Value
Type | Description |
---|---|
XRReferenceObject |