Enum ARWorldAlignment
Specifies how the session maps real-world device motion into a 3D scene coordinate system. See requestedWorldAlignment.
Namespace: UnityEngine.XR.ARKit
Syntax
public enum ARWorldAlignment
Remarks
See Apple's documentation for more information.
Fields
Name | Description | Value |
---|---|---|
Gravity | Aligns the world with gravity that is defined by vector (0, -1, 0). |
0 |
GravityAndHeading | Aligns the world with gravity that is defined by the vector (0, -1, 0) and heading (in relation to True North) that is given by the vector (0, 0, 1). NoteThis option requires location services to be enabled and the user must grant your app permission to use location services. You must therefore provide a Location Usage Description entry in the Player Settings in order to set requestedWorldAlignment to this value. |
1 |
Camera | Aligns the world with the camera’s orientation. |
2 |