Abstract base class for any system which allows the creation and management of anchors in the environment. This is required as different platforms have different ways of handling anchors. It allows us to abstract away the differences and provide a unified interface for the rest of the system.
More...
|
| 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.
|
| |
|
| static AnchorProvider | Instance [get] |
| |
| bool | Ready [get] |
| | Gets a value indicating whether the provider is ready to create and manage anchors.
|
| |
Abstract base class for any system which allows the creation and management of anchors in the environment. This is required as different platforms have different ways of handling anchors. It allows us to abstract away the differences and provide a unified interface for the rest of the system.
◆ Awake()
| virtual void AnchorProvider.Awake |
( |
| ) |
|
|
inlinevirtual |
◆ CreateAnchor()
| void AnchorProvider.CreateAnchor |
( |
Pose | pose, |
|
|
Action< string > | OnCompleted = null ) |
|
abstract |
Creates an anchor at the specified pose.
- Parameters
-
| pose | The pose where the anchor should be created. |
| OnCompleted | Callback invoked when the anchor creation is completed. |
◆ DestroyAnchor()
| void AnchorProvider.DestroyAnchor |
( |
string | id | ) |
|
|
abstract |
Destroys the anchor with the specified ID.
- Parameters
-
| id | The ID of the anchor to destroy. |
◆ GetAllAnchors()
Gets all anchors managed by the provider.
- Returns
- An array of all anchors.
◆ OnDestroy()
| virtual void AnchorProvider.OnDestroy |
( |
| ) |
|
|
inlinevirtual |
Cleans up the singleton instance when the provider is destroyed.
◆ TryGetAnchor()
| bool AnchorProvider.TryGetAnchor |
( |
string | id, |
|
|
out FMARAnchor | anchor ) |
|
abstract |
Tries to get the anchor with the specified ID.
- Parameters
-
| id | The ID of the anchor to retrieve. |
| anchor | The retrieved anchor, if found. |
- Returns
- True if the anchor was found; otherwise, false.
◆ TryGetClosestAnchor()
| bool AnchorProvider.TryGetClosestAnchor |
( |
Vector3 | position, |
|
|
float | radius, |
|
|
out FMARAnchor | anchor ) |
|
abstract |
Tries to get the closest anchor to the specified position within a given radius.
- Parameters
-
| position | The position to search from. |
| radius | The search radius. |
| anchor | The closest anchor, if found. |
- Returns
- True if an anchor was found; otherwise, false.
◆ OnAnchorAdded
| Action AnchorProvider.OnAnchorAdded |
|
static |
◆ OnAnchorRemoved
| Action AnchorProvider.OnAnchorRemoved |
|
static |
◆ OnAnchorsUpdated
| Action AnchorProvider.OnAnchorsUpdated |
|
static |
◆ Instance
◆ Ready
| bool AnchorProvider.Ready |
|
getabstract |
Gets a value indicating whether the provider is ready to create and manage anchors.
The documentation for this class was generated from the following file: