We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d1ecb1 commit 0d660a2Copy full SHA for 0d660a2
Assets/MixedRealityToolkit/Utilities/Editor/MixedRealityOptimizeUtils.cs
@@ -91,7 +91,7 @@ public static void SetDepthBufferFormat(bool set16BitDepthBuffer)
91
PlayerSettings.VRDaydream.depthFormat = depthFormat;
92
93
var playerSettings = GetSettingsObject("PlayerSettings");
94
-#if UNITY_2019
+#if UNITY_2019_1_OR_NEWER
95
PlayerSettings.VRWindowsMixedReality.depthBufferFormat = set16BitDepthBuffer ?
96
PlayerSettings.VRWindowsMixedReality.DepthBufferFormat.DepthBufferFormat16Bit :
97
PlayerSettings.VRWindowsMixedReality.DepthBufferFormat.DepthBufferFormat24Bit;
0 commit comments