Fixed AR Mode after Sky Update
This commit is contained in:
@@ -38,6 +38,14 @@ namespace UI
|
||||
passthroughLayer.enabled = !passthroughLayer.enabled;
|
||||
passthroughLayer.gameObject.SetActive(passthroughLayer.enabled);
|
||||
raceTrack.SetActive(!passthroughLayer.enabled);
|
||||
if (passthroughLayer.enabled)
|
||||
{
|
||||
Camera.main.clearFlags = CameraClearFlags.SolidColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
Camera.main.clearFlags = CameraClearFlags.Skybox;
|
||||
}
|
||||
Debug.Log("Passthrough is now: " + passthroughLayer.enabled);
|
||||
pressed = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user