Class ARAnchor
Represents an Anchor tracked by an XR device.
Inheritance
ARAnchor
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
[DefaultExecutionOrder(-2147483646)]
[DisallowMultipleComponent]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARAnchor.html")]
public sealed class ARAnchor : ARTrackable<XRAnchor, ARAnchor>
Remarks
An anchor is a pose in the physical environment that is tracked by an XR device. As the device refines its understanding of the environment, anchors will be updated, helping you to keep virtual content connected to a real-world position and orientation.
Properties
Name | Description |
---|---|
nativePtr | Get the native pointer associated with this ARAnchor. |
sessionId | Get the session identifier from which this anchor originated. |