Navigation
API > API/Runtime > API/Runtime/AugmentedReality
| Name | UARBlueprintLibrary |
| Type | class |
| Header File | /Engine/Source/Runtime/AugmentedReality/Public/ARBlueprintLibrary.h |
| Include Path | #include "ARBlueprintLibrary.h" |
Syntax
UCLASS (MinimalAPI, Meta=(ScriptName="ARLibrary"))
class UARBlueprintLibrary : public UBlueprintFunctionLibrary
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBlueprintFunctionLibrary → UARBlueprintLibrary
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| RegisteredARSystem | TWeakPtr< FARSupportInterface, ESPMode::ThreadSafe > | ARBlueprintLibrary.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool AddManualEnvironmentCaptureProbe
(
FVector Location, |
Adds an environment capture probe to the ar world | ARBlueprintLibrary.h |
|
static FDelegateHandle AddOnTrackableAddedDelegate_Handle
(
const FOnTrackableAddedDelegate& Delegate |
Static helpers to create the methods needed to add/remove delegates from the AR system. | ARBlueprintLibrary.h | |
static FDelegateHandle AddOnTrackableRemovedDelegate_Handle
(
const FOnTrackableRemovedDelegate& Delegate |
ARBlueprintLibrary.h | ||
static FDelegateHandle AddOnTrackableUpdatedDelegate_Handle
(
const FOnTrackableUpdatedDelegate& Delegate |
ARBlueprintLibrary.h | ||
static UARCandidateImage * AddRuntimeCandidateImage
(
UARSessionConfig* SessionConfig, |
Create an ARCandidateImage object and add it to the ARCandidateImageList of the given `UARSessionConfig_ object. | ARBlueprintLibrary.h |
|
static bool AddTrackedPointWithName
(
const FTransform& WorldTransform, |
Manually add a tracked point with name and world transform. | ARBlueprintLibrary.h |
|
static 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. | ARBlueprintLibrary.h |
|
static void CalculateClosestIntersection
(
const TArray< FVector >& StartPoints, |
Alignment helpers. | ARBlueprintLibrary.h |
|
static void ClearOnTrackableAddedDelegate_Handle
(
FDelegateHandle& Handle |
ARBlueprintLibrary.h | ||
static void ClearOnTrackableAddedDelegates
(
FDelegateUserObject Object |
ARBlueprintLibrary.h | ||
static void ClearOnTrackableRemovedDelegate_Handle
(
FDelegateHandle& Handle |
ARBlueprintLibrary.h | ||
static void ClearOnTrackableRemovedDelegates
(
FDelegateUserObject Object |
ARBlueprintLibrary.h | ||
static void ClearOnTrackableUpdatedDelegate_Handle
(
FDelegateHandle& Handle |
ARBlueprintLibrary.h | ||
static void ClearOnTrackableUpdatedDelegates
(
FDelegateUserObject Object |
ARBlueprintLibrary.h | ||
static void DebugDrawPin
(
UARPin* ARPin, |
Given a `UARPin_, draw it for debugging purposes. | ARBlueprintLibrary.h |
|
static 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) | ARBlueprintLibrary.h |
|
static TArray< UARTrackedPoint * > FindTrackedPointsByName
(
const FString& PointName |
ARBlueprintLibrary.h |
|
|
static FTransform GetAlignmentTransform() |
ARBlueprintLibrary.h |
|
|
static TArray< UARTrackedGeometry * > GetAllGeometries() |
ARBlueprintLibrary.h |
|
|
static TArray< T * > GetAllGeometriesByClass () |
ARBlueprintLibrary.h | ||
static TArray< UARTrackedGeometry * > GetAllGeometriesByClass
(
TSubclassOf< UARTrackedGeometry > GeometryClass |
ARBlueprintLibrary.h |
|
|
static 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. | ARBlueprintLibrary.h |
|
static TArray< FARPose2D > GetAllTracked2DPoses() |
ARBlueprintLibrary.h |
|
|
static FARSessionStatus GetARSessionStatus () |
It is intended that you check the status of the Augmented Reality session on every frame and take action accordingly. | ARBlueprintLibrary.h |
|
static const TWeakPtr< FARSupportInterface, ESPMode::ThreadSafe > & GetARSystem() |
ARBlueprintLibrary.h | ||
static UARTexture * GetARTexture
(
EARTextureType TextureType |
ARBlueprintLibrary.h |
|
|
static float GetARWorldScale() |
ARBlueprintLibrary.h |
|
|
static bool GetCameraIntrinsics
(
FARCameraIntrinsics& OutCameraIntrinsics |
ARBlueprintLibrary.h |
|
|
static TSharedPtr< FARGetCandidateObjectAsyncTask, ESPMode::ThreadSafe > GetCandidateObject
(
FVector Location, |
ARBlueprintLibrary.h | ||
static UARLightEstimate * GetCurrentLightEstimate () |
An AugmentedReality session can be configured to provide light estimates. | ARBlueprintLibrary.h |
|
static int32 GetNumberOfTrackedFacesSupported() |
ARBlueprintLibrary.h |
|
|
static bool GetObjectClassificationAtLocation
(
const FVector& InWorldLocation, |
Try to determine the classification of the object at a world space location @InWorldLocation: the world location where the classification is needed @OutClassification: the classification result @OutClassificationLocation: the world location at where the classification is calculated @MaxLocationDiff: the max distance between the specified world location and the classification location | ARBlueprintLibrary.h |
|
static TArray< FVector > GetPointCloud() |
ARBlueprintLibrary.h |
|
|
static UARSessionConfig * GetSessionConfig() |
ARBlueprintLibrary.h |
|
|
static TArray< FARVideoFormat > GetSupportedVideoFormats
(
EARSessionType SessionType |
ARBlueprintLibrary.h |
|
|
static EARTrackingQuality GetTrackingQuality() |
ARBlueprintLibrary.h |
|
|
static EARTrackingQualityReason GetTrackingQualityReason() |
ARBlueprintLibrary.h |
|
|
static EARWorldMappingState GetWorldMappingStatus() |
ARBlueprintLibrary.h |
|
|
static bool IsARPinLocalStoreReady() |
Is ARPin Local Store Ready | ARBlueprintLibrary.h |
|
static bool IsARPinLocalStoreSupported() |
Is ARPin Local Store Supported | ARBlueprintLibrary.h |
|
static bool IsARSupported() |
Checks if the current device can support AR | ARBlueprintLibrary.h |
|
static bool IsSceneReconstructionSupported
(
EARSessionType SessionType, |
ARBlueprintLibrary.h |
|
|
static bool IsSessionTrackingFeatureSupported
(
EARSessionType SessionType, |
ARBlueprintLibrary.h |
|
|
static bool IsSessionTypeSupported
(
EARSessionType SessionType |
Test whether this type of session is supported by the current Augmented Reality platform. | ARBlueprintLibrary.h |
|
static TArray< FARTraceResult > LineTraceTrackedObjects
(
const FVector2D ScreenCoord, |
Perform a line trace against any real-world geometry as tracked by the AR system. | ARBlueprintLibrary.h |
|
static TArray< FARTraceResult > LineTraceTrackedObjects3D
(
const FVector Start, |
Perform a line trace against any real-world geometry as tracked by the AR system. | ARBlueprintLibrary.h |
|
static TMap< FName, UARPin * > LoadARPinsFromLocalStore () |
Load all ARPins from local save Note: Multiple loads of a saved pin may result in duplicate pins OR overwritten pins. | ARBlueprintLibrary.h |
|
static void PauseARSession() |
Pause a running Augmented Reality session without clearing existing state. | ARBlueprintLibrary.h |
|
static UARPin * PinComponent
(
USceneComponent* ComponentToPin, |
Pin an Unreal Component to a location in tracking spce (i.e. the real world). | ARBlueprintLibrary.h |
|
static bool PinComponentToARPin
(
USceneComponent* ComponentToPin, |
Associate a component with an ARPin, so that its transform will be updated by the pin. | ARBlueprintLibrary.h |
|
static UARPin * PinComponentToTraceResult
(
USceneComponent* ComponentToPin, |
A convenient version of PinComponent()_ that can be used in conjunction with a result of a LineTraceTrackedObjects_ call. |
ARBlueprintLibrary.h |
|
static void RegisterAsARSystem
(
const TSharedRef< FARSupportInterface, ESPMode::ThreadSafe >& NewArSystem |
ARBlueprintLibrary.h | ||
static void RemoveAllARPinsFromLocalStore() |
Remove all ARPins from the local store | ARBlueprintLibrary.h |
|
static void RemoveARPinFromLocalStore
(
FName InSaveName |
Remove an ARPin from the local store | ARBlueprintLibrary.h |
|
static void RemovePin
(
UARPin* PinToRemove |
Remove a pin such that it no longer updates the associated component. | ARBlueprintLibrary.h |
|
static FIntPoint ResizeXRCamera
(
const FIntPoint& InSize |
Change screen size of Mixed Reality Capture camera. | ARBlueprintLibrary.h |
|
static bool SaveARPinToLocalStore
(
FName InSaveName, |
Save an ARPin to local store | ARBlueprintLibrary.h |
|
static TSharedPtr< FARSaveWorldAsyncTask, ESPMode::ThreadSafe > SaveWorld() |
ARBlueprintLibrary.h | ||
static void SetAlignmentTransform
(
const FTransform& InAlignmentTransform |
Set a transform that will be applied to the tracking space. | ARBlueprintLibrary.h |
|
static 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. | ARBlueprintLibrary.h |
|
static void SetARWorldScale
(
float InWorldScale |
Helper function that modifies the alignment transform scale so that virtual content in the world space appears to be "scaled". | ARBlueprintLibrary.h |
|
static void SetEnabledXRCamera
(
bool bOnOff |
Enable or disable Mixed Reality Capture camera. | ARBlueprintLibrary.h |
|
static void StartARSession
(
UARSessionConfig* SessionConfig |
Begin a new Augmented Reality session. | ARBlueprintLibrary.h |
|
static void StopARSession() |
Stop a running Augmented Reality session and clear any state. | ARBlueprintLibrary.h |
|
static bool ToggleARCapture
(
const bool bOnOff, |
Starts or stops a battery intensive service on device. | ARBlueprintLibrary.h |
|
static void UnpinComponent
(
USceneComponent* ComponentToUnpin |
Given a pinned `ComponentToUnpin_, remove its attachment to the real world. | ARBlueprintLibrary.h |
|