The available camera modes.
SDKs
- iOS 13.0+
- Xcode 11.0+
Framework
- Reality
Kit
Declaration
enum CameraMode
The available camera modes.
SDKs
Framework
enum CameraMode
case ar
Use the device’s camera, managed by the AR session.
case non AR
Use a virtual camera.
static func == (ARView .Camera Mode, ARView .Camera Mode) -> Bool
Indicates whether two camera modes are equal.
static func != (ARView .Camera Mode, ARView .Camera Mode) -> Bool
Indicates whether two camera modes are not equal.
func hash(into: inout Hasher)
Hashes the essential components of the camera mode by feeding them into the given hash function.
var hash Value: Int
The hashed value of the camera mode.
var camera Mode: ARView .Camera Mode
A setting that chooses between the AR session’s camera and a virtual one.
var camera Transform: Transform
The transform of the currently active camera.