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

we don't need to check if the system exists anymore #23

Merged
merged 1 commit into from
May 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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