EARWorldAlignment

Options for how the scene's coordinate system is constructed. This feature is used by ARKit.

Choose your operating system:

Windows

macOS

Linux

References

Module

AugmentedReality

Header

/Engine/Source/Runtime/AugmentedReality/Public/ARSessionConfig.h

Include

#include "ARSessionConfig.h"

Syntax

enum EARWorldAlignment
{
    Gravity,
    GravityAndHeading,
    Camera,
}

Values

Name

Description

Gravity

The coordinate system is aligned with gravity, defined by the vector (0, -1, 0).

GravityAndHeading

The coordinate system is aligned with gravity, defined by the vector (0, -1, 0), and compass heading based on True North, defined by the vector (0, 0, -1).

Camera

The coordinate system matches the camera's orientation. This option is recommended for Face AR.

Remarks

Options for how the scene's coordinate system is constructed. This feature is used by ARKit.