Navigation
Unreal Engine C++ API Reference > Plugins > AzureSpatialAnchors
Inheritance Hierarchy
- IModularFeature
- IAzureSpatialAnchors
- FAzureSpatialAnchorsBase
References
Module | AzureSpatialAnchors |
Header | /Engine/Plugins/Runtime/AR/AzureSpatialAnchors/Source/AzureSpatialAnchors/Public/IAzureSpatialAnchors.h |
Include | #include "IAzureSpatialAnchors.h" |
Syntax
class IAzureSpatialAnchors : public IModularFeature
Remarks
IAzureSpatialAnchors.h provides the C++ interface for using AzureSpatialAnchors (ASA) in Unreal.
Most of its functions are simple wrappers for ASA api's from Microsoft. A few relate to UAzureCloudSpatialAnchor objects. A few communicate with the platform specific local anchor api's, where that is necessary.
It is extended by AzureSpatialAnchorsBase, which owns the UAzureCloudSpatialAnchor objects which are UE's representation of the ASA CloudAnchor object. That is then extended by AzureSpatialAnchorsFor
AzureSpatialAnchorsFunctionLibrary provides the blueprint api for AzureSpatialAnchors. It is also an example of how to use the C++ api.
UAzureSpatialAnchorsLibrary::StartSession() is a super simple case. It just calls through to one of the non-async ForPlatform api functions.
UAzureSpatialAnchorsLibrary::DeleteCloudAnchor is a latent blueprint function wrapping a simple async api function. Most of the logic is actually in FAzureSpatialAnchorsDeleteCloudAnchorAction.
UAzureSpatialAnchorsLibrary::LoadCloudAnchor / FAzureSpatialAnchorsLoadCloudAnchorAction is the most complicated. It creates a watcher then registers for the delegates so it can handle AnchorLocated and AnchorLocateCompleted events.
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FASAAnchorLocatedTask | If an implementation generates events from a thread other than the game thread it should launch these tasks that will fire the delegates on the game thread | |
![]() |
FASALocateAnchorsCompletedTask | ||
![]() |
FASASessionUpdatedTask |
Typedefs
Name | Description |
---|---|
Callback_Result | |
Callback_Result_CloudAnchorID | |
Callback_Result_SessionStatus | |
Callback_Result_String | |
CloudAnchorID | |
FASAAnchorLocatedDelegate | WatcherIdentifier, status, anchor. |
FASALocateAnchorsCompletedDelegate | WatcherIdentifier, canceled. |
FASASessionUpdatedDelegate | ReadyForCreateProgress, RecommendedForCreateProgress, SessionCreateHash, SessionLocateHash, feedback. |
LogFunctionPtr | |
WatcherID |