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 referencePointsChanged event.
Properties
Name | Description |
---|---|
gameObjectName | The name given to each |
referencePointPrefab | This Prefab will be instantiated for each ARReferencePoint. Can be |
Methods
Name | Description |
---|---|
AddReferencePoint(Pose) | Attempts to add an ARReferencePoint with the given |
AttachReferencePoint(ARPlane, Pose) | Attempts to create a new reference point that is attached to an existing ARPlane. |
GetPrefab() | Gets the Prefab that will be instantiated for each ARReferencePoint. |
GetReferencePoint(TrackableId) | Gets the ARReferencePoint with given |
OnTrackablesChanged(List<ARReferencePoint>, List<ARReferencePoint>, List<ARReferencePoint>) | Invoked when the base class detects trackable changes. |
RemoveReferencePoint(ARReferencePoint) | Attempts to remove an ARReferencePoint. |
Events
Name | Description |
---|---|
referencePointsChanged | 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. |