Update SkyboxSwitcher.cs
This commit is contained in:
parent
7c326a7384
commit
5963edd9b5
@ -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];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user