Update SkyboxSwitcher.cs

This commit is contained in:
msk
2022-05-25 15:04:33 -07:00
parent 7c326a7384
commit 5963edd9b5
+2 -1
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];
}
}