Anchor provider for Oculus XR, allows for the creation and management of anchors. Uses player preferences for storage of anchor references, this is how Meta officially recommends storing anchors via their documentation.
More...
|
| override void | Awake () |
| | Initializes the singleton instance of the anchor provider.
|
| |
| override void | CreateAnchor (Pose pose, Action< string > OnCompleted) |
| |
| override void | DestroyAnchor (string id) |
| | Destroys the anchor with the specified ID.
|
| |
| void | Update () |
| | Updates the anchors.
|
| |
| void | Start () |
| | Starts the anchor provider.
|
| |
| override bool | TryGetAnchor (string id, out FMARAnchor anchor) |
| | Tries to get the anchor with the specified ID.
|
| |
| void | LoadAnchorsByUuid () |
| | Loads the anchors by UUID.
|
| |
| override FMARAnchor[] | GetAllAnchors () |
| | Gets all anchors.
|
| |
| override bool | TryGetClosestAnchor (Vector3 position, float radius, out FMARAnchor anchor) |
| | Tries to get the closest anchor.
|
| |
| void | CreateAnchor (Pose pose, Action< string > OnCompleted=null) |
| | Creates an anchor at the specified pose.
|
| |
| void | DestroyAnchor (string id) |
| | Destroys the anchor with the specified ID.
|
| |
| bool | TryGetAnchor (string id, out FMARAnchor anchor) |
| | Tries to get the anchor with the specified ID.
|
| |
| bool | TryGetClosestAnchor (Vector3 position, float radius, out FMARAnchor anchor) |
| | Tries to get the closest anchor to the specified position within a given radius.
|
| |
| FMARAnchor[] | GetAllAnchors () |
| | Gets all anchors managed by the provider.
|
| |
| virtual void | OnDestroy () |
| | Cleans up the singleton instance when the provider is destroyed.
|
| |
|
| override bool | Ready [get] |
| |
| static AnchorProvider | Instance [get] |
| |
| bool | Ready [get] |
| | Gets a value indicating whether the provider is ready to create and manage anchors.
|
| |
Anchor provider for Oculus XR, allows for the creation and management of anchors. Uses player preferences for storage of anchor references, this is how Meta officially recommends storing anchors via their documentation.
◆ Awake()
| override void OVRAnchorProvider.Awake |
( |
| ) |
|
|
inlinevirtual |
Initializes the singleton instance of the anchor provider.
Reimplemented from AnchorProvider.
◆ CreateAnchor()
| override void OVRAnchorProvider.CreateAnchor |
( |
Pose | pose, |
|
|
Action< string > | OnCompleted ) |
|
inline |
◆ DestroyAnchor()
| override void OVRAnchorProvider.DestroyAnchor |
( |
string | id | ) |
|
|
inline |
Destroys the anchor with the specified ID.
- Parameters
-
| id | The ID of the anchor to destroy. |
◆ GetAllAnchors()
| override FMARAnchor[] OVRAnchorProvider.GetAllAnchors |
( |
| ) |
|
|
inline |
Gets all anchors.
- Returns
- All anchors.
◆ LoadAnchorsByUuid()
| void OVRAnchorProvider.LoadAnchorsByUuid |
( |
| ) |
|
|
inline |
Loads the anchors by UUID.
◆ Start()
| void OVRAnchorProvider.Start |
( |
| ) |
|
|
inline |
Starts the anchor provider.
◆ TryGetAnchor()
| override bool OVRAnchorProvider.TryGetAnchor |
( |
string | id, |
|
|
out FMARAnchor | anchor ) |
|
inline |
Tries to get the anchor with the specified ID.
- Parameters
-
| id | The ID of the anchor to get. |
| anchor | The anchor to get. |
- Returns
- Whether the anchor was found.
◆ TryGetClosestAnchor()
| override bool OVRAnchorProvider.TryGetClosestAnchor |
( |
Vector3 | position, |
|
|
float | radius, |
|
|
out FMARAnchor | anchor ) |
|
inline |
Tries to get the closest anchor.
- Parameters
-
| position | The position to get the closest anchor to. |
| radius | The radius to search within. |
| anchor | The anchor to get. |
- Returns
- Whether the anchor was found.
◆ Update()
| void OVRAnchorProvider.Update |
( |
| ) |
|
|
inline |
◆ Ready
| override bool OVRAnchorProvider.Ready |
|
get |
The documentation for this class was generated from the following file: