A description of background, lighting, and acoustic properties for a view’s content.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.0+
Framework
- Reality
Kit
Declaration
struct Environment
A description of background, lighting, and acoustic properties for a view’s content.
SDKs
Framework
struct Environment
init(background: ARView .Environment .Background, lighting: ARView .Environment .Image Based Light, reverb: ARView .Environment .Reverb)
Creates a new environment description with the given elements.
var background: ARView .Environment .Background
The background for the environment.
struct ARView .Environment .Background
Content that appears as the background of the scene.
var lighting: ARView .Environment .Image Based Light
The lighting used in the environment of a particular scene.
struct ARView .Environment .Image Based Light
Lighting properties of an environment.
var reverb: ARView .Environment .Reverb
The amount of reverb in the scene.
enum ARView .Environment .Reverb
Reverb characteristics of an environment.
var environment: ARView .Environment
The view’s background, lighting, and acoustic properties.
var physics Origin: Entity?
The entity that defines the origin of the scene’s physics simulation.
var audio Listener: Entity?
The entity that defines the listener position and orientation for spatial audio.