UAndroidXRSpatialAnchorsSubsystem
#include <AndroidXRSpatialAnchorsSubsystem.h>
The Spatial Anchors subsystem.
Summary
Inheritance
Inherits from:UAndroidXRSpatialEntitiesSubsystem
Public attributes |
|
|---|---|
OnAnchorAdded {}
|
FAnchorPersistOperationDelegate
The callback for when the runtime detects anchors in the environment (when loading persisted anchors for example)
|
OnAnchorRemoved {}
|
FAnchorPersistOperationDelegate
The callback for when the runtime removes tracked anchors from the environment (when loading persisted anchors for example)
|
Public functions |
|
|---|---|
CreateSpatialAnchor(const FTransform & AnchorTransform, UAndroidXRSpatialAnchorEntity *& CreatedAnchor)
|
bool
Creates a spatial anchor at the specified transform.
|
DestroySpatialAnchor(UAndroidXRSpatialAnchorEntity *AnchorToDestroy)
|
bool
Destroys a spatial anchor.
|
LoadPersistedAnchors()
|
bool
Loads persistent anchors.
|
Protected functions |
|
|---|---|
BindEntityEvents() override
|
virtual void
|
GetCapabilityModule() override
|
virtual FAndroidXRSpatialCapabilityModule *
|
GetRequiredPermissions(TArray< FString > & Permissions) override
|
virtual void
|
UnbindEntityEvents() override
|
virtual void
|
Public attributes
OnAnchorAdded
FAnchorPersistOperationDelegate OnAnchorAdded {}The callback for when the runtime detects anchors in the environment (when loading persisted anchors for example)
OnAnchorRemoved
FAnchorPersistOperationDelegate OnAnchorRemoved {}The callback for when the runtime removes tracked anchors from the environment (when loading persisted anchors for example)
Public functions
CreateSpatialAnchor
bool CreateSpatialAnchor( const FTransform & AnchorTransform, UAndroidXRSpatialAnchorEntity *& CreatedAnchor )
Creates a spatial anchor at the specified transform.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
||||
| Returns |
Whether the underlying API call was successful
|
DestroySpatialAnchor
bool DestroySpatialAnchor( UAndroidXRSpatialAnchorEntity *AnchorToDestroy )
Destroys a spatial anchor.
| Details | |||
|---|---|---|---|
| Parameters |
|
||
| Returns |
Whether the underlying API call was successful
|
LoadPersistedAnchors
bool LoadPersistedAnchors()
Loads persistent anchors.
The callbacks of OnAnchorAdded will be fired for the loaded anchors
Protected functions
BindEntityEvents
virtual void BindEntityEvents() override
GetCapabilityModule
virtual FAndroidXRSpatialCapabilityModule * GetCapabilityModule() override
GetRequiredPermissions
virtual void GetRequiredPermissions( TArray< FString > & Permissions ) override
UnbindEntityEvents
virtual void UnbindEntityEvents() override