Skip to content

Commit 32c3be5

Browse files
author
Stephen Hodgson
authored
Merge pull request #447 from LocalJoost/PreventWACKFail
The check for a VR device does not happen at run time.
2 parents bbc2aa9 + 04c88ae commit 32c3be5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/HoloToolkit/SpatialMapping/Scripts/SpatialMappingManager.cs

Lines changed: 2 additions & 2 deletions
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
@@ -202,7 +202,7 @@ public void StartObserver()
202202
/// </summary>
203203
public void StopObserver()
204204
{
205-
#if UNITY_EDITOR
205+
#if UNITY_EDITOR || UNITY_UWP
206206
// Allow observering if a device is present (Holographic Remoting)
207207
if (!UnityEngine.VR.VRDevice.isPresent) return;
208208
#endif

0 commit comments

Comments
 (0)