Navigation
API > API/Runtime > API/Runtime/AugmentedReality
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UARBlueprintLibrary
References
| Module | AugmentedReality |
| Header | /Engine/Source/Runtime/AugmentedReality/Public/ARBlueprintLibrary.h |
| Include | #include "ARBlueprintLibrary.h" |
Syntax
class UARBlueprintLibrary : public UBlueprintFunctionLibrary
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddManualEnvironmentCaptureProbe
(
FVector Location, |
Adds an environment capture probe to the ar world | |
| FDelegateHandle | AddOnTrackableAddedDelegate_Handle
(
const FOnTrackableAddedDelegate& Delegate |
Static helpers to create the methods needed to add/remove delegates from the AR system. | |
| FDelegateHandle | AddOnTrackableRemovedDelegate_Handle
(
const FOnTrackableRemovedDelegate& Delegate |
||
| FDelegateHandle | AddOnTrackableUpdatedDelegate_Handle
(
const FOnTrackableUpdatedDelegate& Delegate |
||
| UARCandidateImage * | AddRuntimeCandidateImage
(
UARSessionConfig* SessionConfig, |
Create an ARCandidateImage object and add it to the ARCandidateImageList of the given `UARSessionConfig_ object. | |
| bool | AddTrackedPointWithName
(
const FTransform& WorldTransform, |
Manually add a tracked point with name and world transform. | |
| void | CalculateAlignmentTransform
(
const FTransform& TransformInFirstCoordinateSystem, |
Computes a transform that aligns two coordinate systems. Requires the transform of the same known point in each coordinate system. | |
| void | CalculateClosestIntersection
(
const TArray< FVector >& StartPoints, |
Alignment helpers. | |
| void | ClearOnTrackableAddedDelegate_Handle
(
FDelegateHandle& Handle |
||
| void | ClearOnTrackableAddedDelegates
(
void* Object |
||
| void | |||
| void | ClearOnTrackableRemovedDelegates
(
void* Object |
||
| void | |||
| void | ClearOnTrackableUpdatedDelegates
(
void* Object |
||
| void | DebugDrawPin
(
UARPin* ARPin, |
Given a `UARPin_, draw it for debugging purposes. | |
| void | DebugDrawTrackedGeometry
(
UARTrackedGeometry* TrackedGeometry, |
Given some real-world geometry being tracked by the Augmented Reality system, draw it on the screen for debugging purposes (rudimentary) | |
| TArray< UARTrackedPoint * > | FindTrackedPointsByName
(
const FString& PointName |
||
| FTransform | |||
| TArray< UARTrackedGeometry * > | |||
| TArray< T * > | |||
| TArray< UARTrackedGeometry * > | GetAllGeometriesByClass
(
TSubclassOf< UARTrackedGeometry > GeometryClass |
||
| TArray< UARPin * > | GetAllPins () |
Get a list of all the `UARPin_ objects that the Augmented Reality session is currently using to connect virtual objects to real-world, tracked locations. | |
| TArray< FARPose2D > | |||
| FARSessionStatus | It is intended that you check the status of the Augmented Reality session on every frame and take action accordingly. | ||
| UARTexture * | GetARTexture
(
EARTextureType TextureType |
||
| float | |||
| bool | GetCameraIntrinsics
(
FARCameraIntrinsics& OutCameraIntrinsics |
||
| TSharedPtr< FARGetCandidateObjectAsyncTask, ESPMode::ThreadSafe > | GetCandidateObject
(
FVector Location, |
||
| UARLightEstimate * | An AugmentedReality session can be configured to provide light estimates. | ||
| int32 | |||
| bool | GetObjectClassificationAtLocation
(
const FVector& InWorldLocation, |
Try to determine the classification of the object at a world space location : the world location where the classification is needed : the classification result : the world location at where the classification is calculated : the max distance between the specified world location and the classification location | |
| TArray< FVector > | |||
| UARSessionConfig * | |||
| TArray< FARVideoFormat > | GetSupportedVideoFormats
(
EARSessionType SessionType |
||
| EARTrackingQuality | |||
| EARTrackingQualityReason | |||
| EARWorldMappingState | |||
| bool | Is ARPin Local Store Ready | ||
| bool | Is ARPin Local Store Supported | ||
| bool | Checks if the current device can support AR | ||
| bool | IsSceneReconstructionSupported
(
EARSessionType SessionType, |
||
| bool | IsSessionTrackingFeatureSupported
(
EARSessionType SessionType, |
||
| bool | IsSessionTypeSupported
(
EARSessionType SessionType |
Test whether this type of session is supported by the current Augmented Reality platform. | |
| TArray< FARTraceResult > | LineTraceTrackedObjects
(
const FVector2D ScreenCoord, |
Perform a line trace against any real-world geometry as tracked by the AR system. | |
| TArray< FARTraceResult > | LineTraceTrackedObjects3D
(
const FVector Start, |
Perform a line trace against any real-world geometry as tracked by the AR system. | |
| TMap< FName, UARPin * > | Load all ARPins from local save Note: Multiple loads of a saved pin may result in duplicate pins OR overwritten pins. | ||
| void | Pause a running Augmented Reality session without clearing existing state. | ||
| UARPin * | PinComponent
(
USceneComponent* ComponentToPin, |
Pin an Unreal Component to a location in tracking spce (i.e. the real world). | |
| bool | PinComponentToARPin
(
USceneComponent* ComponentToPin, |
Associate a component with an ARPin, so that its transform will be updated by the pin. | |
| UARPin * | PinComponentToTraceResult
(
USceneComponent* ComponentToPin, |
A convenient version of [PinComponent()](API\Runtime\AugmentedReality\UARBlueprintLibrary\PinComponent)_ that can be used in conjunction with a result of a LineTraceTrackedObjects_ call. |
|
| void | RegisterAsARSystem
(
const TSharedRef< FARSupportInterface, ESPMode::ThreadSafe >& NewArSystem |
||
| void | Remove all ARPins from the local store | ||
| void | RemoveARPinFromLocalStore
(
FName InSaveName |
Remove an ARPin from the local store | |
| void | Remove a pin such that it no longer updates the associated component. | ||
| FIntPoint | ResizeXRCamera
(
const FIntPoint& InSize |
Change screen size of Mixed Reality Capture camera. | |
| bool | SaveARPinToLocalStore
(
FName InSaveName, |
Save an ARPin to local store | |
| TSharedPtr< FARSaveWorldAsyncTask, ESPMode::ThreadSafe > | SaveWorld () |
||
| void | SetAlignmentTransform
(
const FTransform& InAlignmentTransform |
Set a transform that will be applied to the tracking space. | |
| void | SetARWorldOriginLocationAndRotation
(
FVector OriginLocation, |
For a point P in the AR local space, whose location and rotation are "OriginLocation" and "OriginRotation" in the world space modify the alignment transform so that the same point P will be transformed to the origin in the world space. | |
| void | SetARWorldScale
(
float InWorldScale |
Helper function that modifies the alignment transform scale so that virtual content in the world space appears to be "scaled". | |
| void | SetEnabledXRCamera
(
bool bOnOff |
Enable or disable Mixed Reality Capture camera. | |
| void | StartARSession
(
UARSessionConfig* SessionConfig |
Begin a new Augmented Reality session. | |
| void | Stop a running Augmented Reality session and clear any state. | ||
| bool | ToggleARCapture
(
const bool bOnOff, |
Starts or stops a battery intensive service on device. | |
| void | UnpinComponent
(
USceneComponent* ComponentToUnpin |
Given a pinned `ComponentToUnpin_, remove its attachment to the real world. |
Constants
| Name | Description |
|---|---|
| RegisteredARSystem |