Navigation
Unreal Engine C++ API Reference > Runtime > AugmentedReality
Inheritance Hierarchy
- IARSystemSupport
- FARSystemProxy
- FARSystemSupportBase
References
Module | AugmentedReality |
Header | /Engine/Source/Runtime/AugmentedReality/Public/ARSystem.h |
Include | #include "ARSystem.h" |
Syntax
class IARSystemSupport
Remarks
Implement IARSystemSupport for any platform that wants to be an Unreal Augmented Reality System. e.g. AppleARKit, GoogleARCore. This interface is included as part of the abstract class `FARSupportInterface_ . The functions you must override are coalesced here for clarity.
Augmented Reality Spaces
Engineers working on supporting Augmented Reality must be aware of three spaces:
TrackingSpace : This is the space defined by the underlying AR system (e.g. ARKit, ARCore, etc.) Unreal has no control over the origin of this space.
AlignedTrackingSpace : To regain control of TrackingSpace, Unreal applies the AlignmentTransform so bend TrackingSpace to its will. If you are implementing IARSystemSupport, you will need to understand this transform and apply it accordingly.
WorldSpace : This is Unreal's coordinate system. Coordinates from Tracking Space can be translated into WorldSpace by using the AlignmentTransform and the TrackingToWorldTransform.
* [TrackingSpace]--(AlignmentTransform)-->[AlignedTrackingSpace]--(TrackingToWorld)-->[WorldSpace] *
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FDelegateHandle | AddOnTrackableAddedDelegate_Handle
(
const FOnTrackableAddedDelegate& Delegate |
|
![]() ![]() |
FDelegateHandle | AddOnTrackableRemovedDelegate_Handle
(
const FOnTrackableRemovedDelegate& Delegate |
|
![]() ![]() |
FDelegateHandle | AddOnTrackableUpdatedDelegate_Handle
(
const FOnTrackableUpdatedDelegate& Delegate |
|
![]() ![]() |
bool | ||
![]() ![]() |
void | ClearOnTrackableAddedDelegate_Handle
(
FDelegateHandle& Handle |
|
![]() ![]() |
void | ClearOnTrackableAddedDelegates
(
void* Object |
|
![]() ![]() |
void | ||
![]() ![]() |
void | ClearOnTrackableRemovedDelegates
(
void* Object |
|
![]() ![]() |
void | ||
![]() ![]() |
void | ClearOnTrackableUpdatedDelegates
(
void* Object |
|
![]() ![]() |
UARPin * | FindARPinByComponent
(
const USceneComponent* Component |
Given a scene component find the ARPin which it is pinned by, if any. |
![]() |
void * | ||
![]() |
void * | ||
![]() ![]() |
bool | Returns true/false based on whether AR features are available | |
![]() ![]() ![]() |
bool | ARPin Local Store support. | |
![]() ![]() |
void | LoadARPins
(
TMap< FName, UARPin* >& LoadedPins |
|
![]() |
bool | OnAddManualEnvironmentCaptureProbe
(
FVector Location, |
Tells the ARSystem to generate a capture probe at the specified location if supported |
![]() |
bool | OnAddRuntimeCandidateImage
(
UARSessionConfig* SessionConfig, |
Add candidate image at runtime |
![]() ![]() |
bool | OnAddTrackedPointWithName
(
const FTransform& WorldTransform, |
|
![]() ![]() |
void | Invoked after the base AR system has been initialized. | |
![]() ![]() |
TArray< UARPin * > | OnGetAllPins () |
|
![]() ![]() |
TArray< UARTrackedGeometry * > | ||
![]() ![]() |
FARSessionStatus | ||
![]() ![]() ![]() |
UARTexture * | OnGetARTexture
(
EARTextureType TextureType |
|
![]() ![]() ![]() |
bool | OnGetCameraIntrinsics
(
FARCameraIntrinsics& OutCameraIntrinsics |
|
![]() ![]() |
TSharedPtr< FARGetCandidateObjectAsyncTask, ESPMode::ThreadSafe > | OnGetCandidateObject
(
FVector Location, |
Generates a UARCandidateObject from the point cloud data within the location and its extent using an async task |
![]() ![]() |
UARLightEstimate * | ||
![]() ![]() ![]() |
int32 | ||
![]() ![]() |
TArray< FVector > | ||
![]() ![]() |
TArray< FARVideoFormat > | OnGetSupportedVideoFormats
(
EARSessionType SessionType |
|
![]() ![]() ![]() |
TArray< FARPose2D > | ||
![]() ![]() |
EARTrackingQuality | ||
![]() ![]() |
EARTrackingQualityReason | ||
![]() ![]() |
EARWorldMappingState | ||
![]() ![]() ![]() |
bool | OnIsSceneReconstructionSupported
(
EARSessionType SessionType, |
|
![]() ![]() ![]() |
bool | OnIsSessionTrackingFeatureSupported
(
EARSessionType SessionType, |
|
![]() ![]() |
bool | OnIsTrackingTypeSupported
(
EARSessionType SessionType |
|
![]() |
TArray< FARTraceResult > | OnLineTraceTrackedObjects
(
const FVector2D ScreenCoord, |
Trace all the tracked geometries and determine which have been hit by a ray cast from `ScreenCoord_. |
![]() |
TArray< FARTraceResult > | OnLineTraceTrackedObjects
(
const FVector Start, |
|
![]() |
void | Stop the AR system but leave its internal state intact. | |
![]() |
UARPin * | OnPinComponent
(
USceneComponent* ComponentToPin, |
Pin an Unreal Component to a location in the world. |
![]() |
bool | OnPinComponentToARPin
(
USceneComponent* ComponentToPin, |
Pin a component to an existing ARPin. |
![]() |
void | OnRemovePin
(
UARPin* PinToRemove |
Given a pin, remove it and stop updating the associated component based on the tracked geometry. |
![]() ![]() |
FIntPoint | OnResizeXRCamera
(
const FIntPoint& InSize |
|
![]() ![]() |
TSharedPtr< FARSaveWorldAsyncTask, ESPMode::ThreadSafe > | OnSaveWorld () |
Saves the AR world to a byte array using an async task |
![]() |
void | OnSetAlignmentTransform
(
const FTransform& InAlignmentTransform |
Set a transform that will align the Tracking Space origin to the World Space origin. |
![]() ![]() |
void | OnSetEnabledXRCamera
(
bool bOnOff |
|
![]() ![]() |
bool | OnStartARGameFrame
(
FWorldContext& WorldContext |
|
![]() |
void | OnStartARSession
(
UARSessionConfig* SessionConfig |
Start the AR system. |
![]() |
void | Stop the AR system and reset its internal state; this task must succeed. | |
![]() ![]() |
bool | OnToggleARCapture
(
const bool bOnOff, |
|
![]() ![]() |
bool | OnTryGetOrCreatePinForNativeResource
(
void* InNativeResource, |
Given the platform specific native resource for a pin, create a pin. |
![]() ![]() |
void | ||
![]() ![]() |
void | RemoveSavedARPin
(
FName InName |
|
![]() ![]() |
bool | ||
![]() ![]() |
void | TriggerOnTrackableAddedDelegates
(
UARTrackedGeometry* Param1 |
|
![]() ![]() |
void | TriggerOnTrackableRemovedDelegates
(
UARTrackedGeometry* Param1 |
|
![]() ![]() |
void | TriggerOnTrackableUpdatedDelegates
(
UARTrackedGeometry* Param1 |