Skip to content

Format

typescript
RenderSettings.SetSkybox(sbt, skybox_mat)

class: RenderSettings

Description

Set the skybox material for the current main scene.

Parameters

param_nametypedescription
sbtSkyboxTypeSkybox type
skybox_matMaterialSkybox material

Return

typedescription
void

Code Example

typescript
let sbt = SkyboxType.Cubemap; // Skybox type
let skybox_mat = Resources.Load<Material>(Material, "asset_id"); // Skybox material

RenderSettings.SetSkybox(sbt, skybox_mat);