Class ARReferencePointManager
Manages reference points.
Inheritance
Inherited Members
Namespace: UnityEngine .XR.ARFoundation
Assembly: solution.dll
Syntax
[DisallowMultipleComponent]
[RequireComponent(typeof(ARSessionOrigin))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARReferencePointManager.html")]
[Obsolete("ARReferencePointManager has been deprecated. Use ARAnchorManager instead (UnityUpgradable) -> UnityEngine.XR.ARFoundation.ARAnchorManager", true)]
public sealed class ARReferencePointManager : ARTrackableManager<XRReferencePointSubsystem, XRReferencePointSubsystemDescriptor, XRReferencePointSubsystem.Provider, XRReferencePoint, ARReferencePoint>
Remarks
Use this component to programmatically add, remove, or query for reference points. Reference points are `Pose`s in the world which will be periodically updated by an AR device as its understanding of the world changes.
Subscribe to changes (added, updated, and removed) via the
reference
Properties
Name | Description |
---|---|
game |
The name given to each |
reference |
This Prefab will be instantiated for each ARReference |
Methods
Name | Description |
---|---|
Add |
Attempts to add an ARReference |
Attach |
Attempts to create a new reference point that is attached to an existing ARPlane. |
Get |
Gets the Prefab that will be instantiated for each ARReference |
Get |
Gets the ARReference |
On |
Invoked when the base class detects trackable changes. |
Remove |
Attempts to remove an ARReference |
Events
Name | Description |
---|---|
reference |
Invoked once per frame to communicate changes to reference points, including new reference points, the update of existing reference points, and the removal of previously existing reference points. |