File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Assets/MixedRealityToolkit/_Core Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,13 @@ private enum DisplayType
6363 [ Tooltip ( "Set the desired quality for your application for HoloLens." ) ]
6464 private int holoLensQualityLevel = 0 ;
6565
66- private static DisplayType currentDisplayType ;
66+ [ HideInInspector ]
67+ private DisplayType currentDisplayType ;
6768
68- public static bool IsOpaque
69+ /// <summary>
70+ /// Is the current camera displaying on an Opaque (AR) device or a VR / immersive device
71+ /// </summary>
72+ public bool IsOpaque
6973 {
7074 get
7175 {
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ private void Initialize()
154154 CameraCache . Main . transform . root . DontDestroyOnLoad ( ) ;
155155 }
156156
157- if ( MixedRealityCameraProfile . IsOpaque )
157+ if ( ActiveProfile . CameraProfile . IsOpaque )
158158 {
159159 ActiveProfile . CameraProfile . ApplySettingsForOpaqueDisplay ( ) ;
160160 }
You can’t perform that action at this time.
0 commit comments