Private
constructorPrivate
Creates new instance of the API
Gets the history object for this entity
Private
_initializePrivate
_onPrivate
Called when a scene is loaded.
The loaded scene
Gets value at path. See the SceneSettings overview for a full list of properties.
The path
The value
console.log(editor.settings.scene.get('render.fog'));
Checks if path exists. See the SceneSettings overview for a full list of properties.
The path
True if path exists
console.log(editor.settings.scene.has('render.fog'));
Sets value at path. See the SceneSettings overview for a full list of properties.
The path
The value
Whether the value was set
editor.settings.scene.set('render.fog', 'none');
Represents the settings for the currently loaded scene.
Here is a list of properties that can be accessed using the
get
andset
methods:physics
object
physics.gravity
Array<number>
render
object
render.exposure
number
render.fog
string
pc.FOG_NONE
,pc.FOG_LINEAR
,pc.FOG_EXP
,pc.FOG_EXP2
.render.fog_color
Array<number>
render.fog_density
number
pc.FOG_EXP
orpc.FOG_EXP2
.render.fog_end
number
pc.FOG_LINEAR
.render.fog_start
number
pc.FOG_LINEAR
.render.gamma_correction
number
pc.GAMMA_NONE
,pc.GAMMA_SRGB
.render.global_ambient
Array<number>
render.lightmapMaxResolution
number
render.lightmapMode
number
pc.BAKE_COLOR
,pc.BAKE_COLORDIR
.render.lightmapSizeMultiplier
number
render.skybox
number
id
of the cubemap texture to be used as the scene's skybox.render.skyboxIntensity
number
render.skyboxMip
number
render.skyboxRotation
Array<number>
[0,0,0]
render.tonemapping
number
pc.TONEMAP_LINEAR
,pc.TONEMAP_FILMIC
,pc.TONEMAP_HEJL
,pc.TONEMAP_ACES
.