Navigation
API > API/Runtime > API/Runtime/AugmentedReality
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UDataAsset
- UARSessionConfig
- UGoogleARCoreSessionConfig
References
| Module | AugmentedReality |
| Header | /Engine/Source/Runtime/AugmentedReality/Public/ARSessionConfig.h |
| Include | #include "ARSessionConfig.h" |
Syntax
class UARSessionConfig : public UDataAsset
Remarks
An Unreal Data Asset that defines what features are used in the AR session.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnableAutoFocus | Boolean to determine whether the camera should autofocus. | |
| bool | bEnableAutomaticCameraOverlay | Boolean to determine whether the AR camera feed should be drawn as an overlay. | |
| bool | bEnableAutomaticCameraTracking | Boolean to determine whether the virtual camera should track the device movement. | |
| bool | bGenerateCollisionForMeshData | Boolean to determine whether the AR system should generate collision data from the mesh data. | |
| bool | bGenerateMeshDataFromTrackedGeometry | Boolean to determine whether the AR system should generate mesh data that can be used for rendering, collision, NavMesh, and more. | |
| bool | bGenerateNavMeshForMeshData | Boolean to determine whether the AR system should generate collision data from the mesh data. | |
| bool | bHorizontalPlaneDetection | Boolean to determine whether flat, horizontal surfaces are detected. | |
| bool | bRenderMeshDataInWireframe | Boolean to determine whether the AR system should render the mesh data as wireframe. | |
| bool | bResetCameraTracking | Boolean to determine whether the AR system should reset camera tracking, such as its origin and transforms, when a new AR session starts. | |
| bool | bResetTrackedObjects | Boolean to determine whether the AR system should remove any tracked objects when a new AR session starts. | |
| bool | bTrackSceneObjects | Boolean to determine whether the AR system should track scene objects: | |
| bool | bUseAutomaticImageScaleEstimation | Boolean to determine whether to automatically estimate and set the scale of a detected, or tracked, image. | |
| bool | bUseMeshDataForOcclusion | Boolean to determine whether the AR system should render the mesh data as occlusion meshes. | |
| bool | bUseOptimalVideoFormat | Boolean to determine whether to automatically pick the video format that best matches the device screen size | |
| bool | bUsePersonSegmentationForOcclusion | Boolean to determine whether to use the person segmentation results for occluding virtual content. | |
| bool | bUseSceneDepthForOcclusion | Boolean to determine whether to use the scene depth information for occluding virtual content. | |
| bool | bUseStandardOnboardingUX | Boolean to determine whether to use the standard onboarding UX, if the system supports it. | |
| bool | bVerticalPlaneDetection | Boolean to determine whether flat, vertical surfaces are detected. | |
| TArray< TObjectPtr< UARCandidateImage > > | CandidateImages | The list of candidate images to detect within the AR camera view. This feature is used by ARKit. | |
| TArray< TObjectPtr< UARCandidateObject > > | CandidateObjects | The list of candidate objects to search for in the scene. This feature is used by ARKit. | |
| TObjectPtr< UMaterialInterface > | DefaultMeshMaterial | The default mesh material used by the generated mesh component. | |
| TObjectPtr< UMaterialInterface > | DefaultWireframeMeshMaterial | The default mesh material used by the wireframe setting of the generated mesh component. | |
| FARVideoFormat | DesiredVideoFormat | The desired video format (or the default, if not supported) that this session should use if the camera is enabled. | |
| EARSessionTrackingFeature | EnabledSessionTrackingFeature | ||
| EAREnvironmentCaptureProbeType | EnvironmentCaptureProbeType | ||
| TSubclassOf< UAREnvironmentProbeComponent > | EnvironmentProbeComponentClass | ||
| TSubclassOf< UARFaceComponent > | FaceComponentClass | ||
| EARFaceTrackingDirection | FaceTrackingDirection | ||
| EARFaceTrackingUpdate | FaceTrackingUpdate | ||
| EARFrameSyncMode | FrameSyncMode | ||
| TSubclassOf< UARGeoAnchorComponent > | GeoAnchorComponentClass | ||
| TSubclassOf< UARImageComponent > | ImageComponentClass | ||
| EARLightEstimationMode | LightEstimationMode | ||
| int32 | MaxNumberOfTrackedFaces | The maximum number of faces to track simultaneously. This feature is used by ARKit. | |
| int32 | MaxNumSimultaneousImagesTracked | The maximum number of images to track at the same time. | |
| TSubclassOf< UARMeshComponent > | MeshComponentClass | ||
| TSubclassOf< UARObjectComponent > | ObjectComponentClass | ||
| TSubclassOf< UARPlaneComponent > | PlaneComponentClass | ||
| TSubclassOf< UARPointComponent > | PointComponentClass | ||
| TSubclassOf< UARPoseComponent > | PoseComponentClass | ||
| TSubclassOf< UARQRCodeComponent > | QRCodeComponentClass | ||
| EARSceneReconstruction | SceneReconstructionMethod | ||
| TArray< uint8 > | SerializedARCandidateImageDatabase | Data array for storing the cooked image database. This feature is used by ARCore. | |
| EARSessionType | SessionType | ||
| EARWorldAlignment | WorldAlignment | ||
| TArray< uint8 > | WorldMapData | A previously saved world that will be loaded when the session starts. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| The constructor for the AR Session Config Data Asset. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddCandidateImage
(
UARCandidateImage* NewCandidateImage |
Add a new CandidateImage to the ARSessionConfig. | |
| void | AddCandidateObject
(
UARCandidateObject* CandidateObject |
||
| void | Remove all candidate images from the ARSessionConfig. | ||
| const TArray< UARCandidateImage * > & | |||
| const TArray< UARCandidateObject * > & | |||
| UMaterialInterface * | |||
| UMaterialInterface * | |||
| FARVideoFormat | |||
| EARSessionTrackingFeature | |||
| EAREnvironmentCaptureProbeType | |||
| UClass * | |||
| UClass * | |||
| EARFaceTrackingDirection | |||
| EARFaceTrackingUpdate | |||
| EARFrameSyncMode | |||
| UClass * | |||
| UClass * | |||
| EARLightEstimationMode | |||
| int32 | |||
| int32 | |||
| UClass * | |||
| UClass * | |||
| UClass * | |||
| EARPlaneDetectionMode | |||
| UClass * | |||
| UClass * | |||
| UClass * | |||
| EARSceneReconstruction | |||
| const TArray< uint8 > & | |||
| EARSessionType | |||
| EARWorldAlignment | |||
| const TArray< uint8 > & | |||
| 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. | |
| void | RemoveCandidateImageAtIndex
(
int Index |
Remove a candidate image from the ARSessionConfig, by index. | |
| void | SetCandidateObjectList
(
const TArray< UARCandidateObject* >& InCandidateObjects |
||
| void | SetDesiredVideoFormat
(
FARVideoFormat NewFormat |
||
| void | SetEnableAutoFocus
(
bool bNewValue |
||
| void | SetFaceTrackingDirection
(
EARFaceTrackingDirection InDirection |
||
| void | SetFaceTrackingUpdate
(
EARFaceTrackingUpdate InUpdate |
||
| void | SetResetCameraTracking
(
bool bNewValue |
||
| void | SetResetTrackedObjects
(
bool bNewValue |
||
| void | SetSceneReconstructionMethod
(
EARSceneReconstruction InSceneReconstructionMethod |
||
| void | SetSessionTrackingFeatureToEnable
(
EARSessionTrackingFeature InSessionTrackingFeature |
||
| void | SetWorldMapData
(
TArray< uint8 > WorldMapData |
||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| EARPlaneDetectionMode | PlaneDetectionMode_DEPRECATED |