Skip to content

Commit 80c2c6d

Browse files
committed
The check for a VR device does not happen at run time. Hence, when the app runs of a Windows 10 device that is NOT a HoloLens, it will will crash. This happens for instance when the Windows App Certification Kit runs. Result: the WACK lists a boatload of errors that will never happen when the app is actually deployed to a HoloLens, causing confusing for developers. Also, it prevents the app from running on a normal PC.
1 parent f25cedc commit 80c2c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/HoloToolkit/SpatialMapping/Scripts/SpatialMappingManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public bool IsObserverRunning()
186186
/// </summary>
187187
public void StartObserver()
188188
{
189-
#if UNITY_EDITOR
189+
#if UNITY_EDITOR || UNITY_UWP
190190
// Allow observering if a device is present (Holographic Remoting)
191191
if (!UnityEngine.VR.VRDevice.isPresent) return;
192192
#endif

0 commit comments

Comments
 (0)