Navigation
API > API/Runtime > API/Runtime/AugmentedReality
An Unreal Data Asset that defines what features are used in the AR session.
| Name | UARSessionConfig |
| Type | class |
| Header File | /Engine/Source/Runtime/AugmentedReality/Public/ARSessionConfig.h |
| Include Path | #include "ARSessionConfig.h" |
Syntax
UCLASS (MinimalAPI, BlueprintType, Category="AR Settings")
class UARSessionConfig : public UDataAsset
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UDataAsset → UARSessionConfig
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UARSessionConfig() |
The constructor for the AR Session Config Data Asset. | ARSessionConfig.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bGenerateCollisionForMeshData | bool | Boolean to determine whether the AR system should generate collision data from the mesh data. | ARSessionConfig.h |
|
| bGenerateMeshDataFromTrackedGeometry | bool | Boolean to determine whether the AR system should generate mesh data that can be used for rendering, collision, NavMesh, and more. | ARSessionConfig.h |
|
| bGenerateNavMeshForMeshData | bool | Boolean to determine whether the AR system should generate collision data from the mesh data. | ARSessionConfig.h |
|
| bRenderMeshDataInWireframe | bool | Boolean to determine whether the AR system should render the mesh data as wireframe. | ARSessionConfig.h |
|
| bTrackSceneObjects | bool | Boolean to determine whether the AR system should track scene objects: | ARSessionConfig.h |
|
| bUseAutomaticImageScaleEstimation | bool | Boolean to determine whether to automatically estimate and set the scale of a detected, or tracked, image. | ARSessionConfig.h |
|
| bUseMeshDataForOcclusion | bool | Boolean to determine whether the AR system should render the mesh data as occlusion meshes. | ARSessionConfig.h |
|
| bUsePersonSegmentationForOcclusion | bool | Boolean to determine whether to use the person segmentation results for occluding virtual content. | ARSessionConfig.h |
|
| bUseSceneDepthForOcclusion | bool | Boolean to determine whether to use the scene depth information for occluding virtual content. | ARSessionConfig.h |
|
| bUseStandardOnboardingUX | bool | Boolean to determine whether to use the standard onboarding UX, if the system supports it. | ARSessionConfig.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddCandidateImage
(
UARCandidateImage* NewCandidateImage |
Add a new CandidateImage to the ARSessionConfig. | ARSessionConfig.h |
|
void AddCandidateObject
(
UARCandidateObject* CandidateObject |
ARSessionConfig.h |
|
|
void ClearCandidateImages() |
Remove all candidate images from the ARSessionConfig. | ARSessionConfig.h |
|
const TArray< UARCandidateImage * > & GetCandidateImageList () |
ARSessionConfig.h |
|
|
const TArray< UARCandidateObject * > & GetCandidateObjectList () |
ARSessionConfig.h |
|
|
UMaterialInterface * GetDefaultMeshMaterial () |
ARSessionConfig.h | ||
UMaterialInterface * GetDefaultWireframeMeshMaterial () |
ARSessionConfig.h | ||
| ARSessionConfig.h |
|
||
| ARSessionConfig.h |
|
||
| ARSessionConfig.h |
|
||
UClass * GetEnvironmentProbeComponentClass () |
ARSessionConfig.h | ||
UClass * GetFaceComponentClass () |
ARSessionConfig.h | ||
| ARSessionConfig.h |
|
||
| ARSessionConfig.h |
|
||
| ARSessionConfig.h |
|
||
UClass * GetGeoAnchorComponentClass () |
ARSessionConfig.h | ||
UClass * GetImageComponentClass () |
ARSessionConfig.h | ||
| ARSessionConfig.h |
|
||
int32 GetMaxNumberOfTrackedFaces () |
ARSessionConfig.h | ||
int32 GetMaxNumSimultaneousImagesTracked () |
ARSessionConfig.h |
|
|
UClass * GetMeshComponentClass () |
ARSessionConfig.h | ||
UClass * GetObjectComponentClass () |
ARSessionConfig.h | ||
UClass * GetPlaneComponentClass () |
ARSessionConfig.h | ||
| ARSessionConfig.h |
|
||
UClass * GetPointComponentClass () |
ARSessionConfig.h | ||
UClass * GetPoseComponentClass () |
ARSessionConfig.h | ||
UClass * GetQRCodeComponentClass () |
ARSessionConfig.h | ||
| ARSessionConfig.h |
|
||
const TArray< uint8 > & GetSerializedARCandidateImageDatabase () |
ARSessionConfig.h | ||
| ARSessionConfig.h |
|
||
| ARSessionConfig.h |
|
||
const TArray< uint8 > & GetWorldMapData () |
ARSessionConfig.h |
|
|
void RemoveCandidateImage
(
UARCandidateImage* CandidateImage |
Remove a candidate image from the ARSessionConfig, by pointer, note the image object must match, not the content of the image. | ARSessionConfig.h |
|
void RemoveCandidateImageAtIndex
(
int Index |
Remove a candidate image from the ARSessionConfig, by index. | ARSessionConfig.h |
|
void SetCandidateObjectList
(
const TArray< UARCandidateObject* >& InCandidateObjects |
ARSessionConfig.h |
|
|
void SetDesiredVideoFormat
(
FARVideoFormat NewFormat |
ARSessionConfig.h |
|
|
void SetEnableAutoFocus
(
bool bNewValue |
ARSessionConfig.h |
|
|
void SetFaceTrackingDirection
(
EARFaceTrackingDirection InDirection |
ARSessionConfig.h |
|
|
void SetFaceTrackingUpdate
(
EARFaceTrackingUpdate InUpdate |
ARSessionConfig.h |
|
|
void SetResetCameraTracking
(
bool bNewValue |
ARSessionConfig.h |
|
|
void SetResetTrackedObjects
(
bool bNewValue |
ARSessionConfig.h |
|
|
void SetSceneReconstructionMethod
(
EARSceneReconstruction InSceneReconstructionMethod |
ARSessionConfig.h |
|
|
void SetSessionTrackingFeatureToEnable
(
EARSessionTrackingFeature InSessionTrackingFeature |
ARSessionConfig.h |
|
|
void SetWorldMapData
(
TArray< uint8 > WorldMapData |
ARSessionConfig.h |
|
|
bool ShouldDoHorizontalPlaneDetection () |
ARSessionConfig.h | ||
bool ShouldDoVerticalPlaneDetection () |
ARSessionConfig.h | ||
bool ShouldEnableAutoFocus () |
ARSessionConfig.h |
|
|
bool ShouldEnableCameraTracking () |
ARSessionConfig.h |
|
|
bool ShouldRenderCameraOverlay () |
ARSessionConfig.h |
|
|
bool ShouldResetCameraTracking () |
ARSessionConfig.h |
|
|
bool ShouldResetTrackedObjects () |
ARSessionConfig.h |
|
|
bool ShouldUseOptimalVideoFormat () |
ARSessionConfig.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PlaneDetectionMode_DEPRECATED | EARPlaneDetectionMode | ARSessionConfig.h |