RealityKit · IOS API REFERENCE
ARView.Environment
struct · iOS 13.0+ · SDK 27.1
struct Environment
A description of background, lighting, and acoustic properties for a
view’s content.
Members (8)
init · iOS 13.0+init
TypeScriptstatic init(background: ARView_Environment_Background, lighting: ARView_Environment_ImageBasedLight, reverb: ARView_Environment_Reverb): Promise<ARView_Environment>
Swift declarationinit(background: ARView.Environment.Background, lighting: ARView.Environment.ImageBasedLight, reverb: ARView.Environment.Reverb)
Creates a new environment description with the given elements.
get · iOS 13.0+background
TypeScriptget background(): Promise<ARView_Environment_Background>
Swift declarationvar background: ARView.Environment.Background
The background for the environment.
set · iOS 13.0+background
TypeScriptsetBackground(value: ARView_Environment_Background): Promise<void>
Swift declarationvar background: ARView.Environment.Background
The background for the environment.
set · iOS 13.4+sceneUnderstanding
TypeScriptsetSceneUnderstanding(value: ARView_Environment_SceneUnderstanding): Promise<void>
Swift declarationvar sceneUnderstanding: ARView.Environment.SceneUnderstanding { mutating get set }
The scene-understanding options for the view.
get · iOS 13.0+reverb
TypeScriptget reverb(): Promise<ARView_Environment_Reverb>
Swift declarationvar reverb: ARView.Environment.Reverb
The amount of reverb in the scene.
set · iOS 13.0+reverb
TypeScriptsetReverb(value: ARView_Environment_Reverb): Promise<void>
Swift declarationvar reverb: ARView.Environment.Reverb
The amount of reverb in the scene.
get · iOS 13.0+lighting
TypeScriptget lighting(): Promise<ARView_Environment_ImageBasedLight>
Swift declarationvar lighting: ARView.Environment.ImageBasedLight
The lighting used in the environment of a particular scene.
set · iOS 13.0+lighting
TypeScriptsetLighting(value: ARView_Environment_ImageBasedLight): Promise<void>
Swift declarationvar lighting: ARView.Environment.ImageBasedLight
The lighting used in the environment of a particular scene.
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
ARView.Environment.sceneUnderstanding
The iOS SDK compiler rejected this binding: cannot use mutating getter on immutable value: 'o' is a 'let' constant
All RealityKit types →