1
0
mirror of synced 2024-11-14 10:07:40 +01:00

Update SkyboxSwitcher.cs

This commit is contained in:
msk 2022-05-25 15:04:33 -07:00
parent 7c326a7384
commit 5963edd9b5

View File

@ -42,6 +42,7 @@ public class SkyboxSwitcher : MonoBehaviour
private void SetSkybox()
{
counterTxt.text = (currentSkyboxIndex + 1).ToString();
RenderSettings.skybox = skyboxes[currentSkyboxIndex];
if (skyboxes[currentSkyboxIndex] != null)
RenderSettings.skybox = skyboxes[currentSkyboxIndex];
}
}