Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
we don't need to check if the system exists anymore (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson authored May 7, 2019
1 parent 80bc318 commit cf410d6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions SpatialObservers/WindowsMixedRealitySpatialMeshObserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System;
using XRTK.Providers.SpatialObservers;
using XRTK.Services;
using XRTK.WindowsMixedReality.Profiles;

#if UNITY_WSA
Expand All @@ -29,11 +28,6 @@ public class WindowsMixedRealitySpatialMeshObserver : BaseMixedRealitySpatialMes
/// <param name="profile"></param>
public WindowsMixedRealitySpatialMeshObserver(string name, uint priority, WindowsMixedRealitySpatialMeshObserverProfile profile) : base(name, priority, profile)
{
if (MixedRealityToolkit.SpatialAwarenessSystem == null)
{
throw new Exception("Missing a registered spatial awareness system!");
}

#if UNITY_WSA
#if UNITY_EDITOR
if (!UnityEditor.PlayerSettings.WSA.GetCapability(UnityEditor.PlayerSettings.WSACapability.SpatialPerception))
Expand Down

0 comments on commit cf410d6

Please sign in to comment.