Skip to content

RenderSettings

Render settings contain the values for a series of visual elements in the scene, such as fog and ambient light.

Static Properties

RenderSettings.setkybox : Material
Read-only
RenderSettings.ambientMode : AmbientMode
(Read Only) The current environment lighting mode.
RenderSettings.ambientColor : Color
The ambient light color of the current main scene.
RenderSettings.ambientGroundColor : Color
The ambient light color from below.
RenderSettings.ambientEquatorColor : Color
The ambient light color from the side in the current main scene.
RenderSettings.ambientSkyColor : Color
The ambient light color from above.
RenderSettings.fogEnable : boolean
Whether to enable fog effect.
RenderSettings.fogDensity : number
The density of the fog effect, with a value range of 0 to 1. A higher value indicates a higher density of fog.
RenderSettings.fogColor : Color
Fog color.
RenderSettings.fogMode : FogMode
The current fog mode being used.
RenderSettings.fogStartDistance : number
The starting distance of linear fog effect.
RenderSettings.fogEndDistance : number
The end distance of linear fog effect.
RenderSettings.procedualSkyboxSkyColor : ``
(Currently only write) The sky color of the skybox in the current main scene.
RenderSettings.procedualSkyboxGroundColor : ``
The bottom color of the skybox in the current main scene.

Static Methods

RenderSettings.SetSkybox ( sbt : SkyboxType , skybox_mat : Material ) : void
Set the skybox material for the current main scene.