Format
typescript
RenderSettings.SetSkybox(sbt, skybox_mat)class: RenderSettings
Description
Set the skybox material for the current main scene.
Parameters
| param_name | type | description |
|---|---|---|
| sbt | SkyboxType | Skybox type |
| skybox_mat | Material | Skybox material |
Return
| type | description |
|---|---|
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);