Anchor Provider for Magic Leap 2, allows for the creation and management of anchors.
More...
|
| override void | CreateAnchor (Pose pose, Action< string > OnCompleted) |
| | Creates an anchor at the given pose.
|
| |
| override void | DestroyAnchor (string id) |
| | Destroys the anchor with the given id.
|
| |
| void | Update () |
| | Updates the anchors every updateIntervalSeconds seconds.
|
| |
| void | UpdateAnchors () |
| | Updates the anchors to match the anchors in the Magic Leap system.
|
| |
| override bool | TryGetAnchor (string id, out FMARAnchor anchor) |
| | Tries to get the anchor with the given id.
|
| |
| override FMARAnchor[] | GetAllAnchors () |
| | Gets all anchors.
|
| |
| override bool | TryGetClosestAnchor (Vector3 position, float radius, out FMARAnchor anchor) |
| | Tries to get the closest anchor to the given position within the given radius.
|
| |
| 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 | Awake () |
| | Initializes the singleton instance of the anchor 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 Magic Leap 2, allows for the creation and management of anchors.
◆ CreateAnchor()
| override void MLAnchorProvider.CreateAnchor |
( |
Pose | pose, |
|
|
Action< string > | OnCompleted ) |
|
inline |
Creates an anchor at the given pose.
- Parameters
-
| pose | The pose to create the anchor at. |
| OnCompleted | The action to invoke when the anchor is created. |
◆ DestroyAnchor()
| override void MLAnchorProvider.DestroyAnchor |
( |
string | id | ) |
|
|
inline |
Destroys the anchor with the given id.
- Parameters
-
| id | The id of the anchor to destroy. |
◆ GetAllAnchors()
| override FMARAnchor[] MLAnchorProvider.GetAllAnchors |
( |
| ) |
|
|
inline |
Gets all anchors.
- Returns
- All anchors.
◆ TryGetAnchor()
| override bool MLAnchorProvider.TryGetAnchor |
( |
string | id, |
|
|
out FMARAnchor | anchor ) |
|
inline |
Tries to get the anchor with the given id.
- Parameters
-
| id | The id of the anchor to get. |
| anchor | The anchor to get. |
- Returns
- Whether the anchor was found.
◆ TryGetClosestAnchor()
| override bool MLAnchorProvider.TryGetClosestAnchor |
( |
Vector3 | position, |
|
|
float | radius, |
|
|
out FMARAnchor | anchor ) |
|
inline |
Tries to get the closest anchor to the given position within the given radius.
- Parameters
-
| position | The position to search from. |
| radius | The radius to search in. |
| anchor | The anchor to get. |
- Returns
- Whether the anchor was found.
◆ Update()
| void MLAnchorProvider.Update |
( |
| ) |
|
|
inline |
Updates the anchors every updateIntervalSeconds seconds.
◆ UpdateAnchors()
| void MLAnchorProvider.UpdateAnchors |
( |
| ) |
|
|
inline |
Updates the anchors to match the anchors in the Magic Leap system.
◆ Ready
| override bool MLAnchorProvider.Ready |
|
get |
The documentation for this class was generated from the following file: