protected override void Start()
        {
            observer = CoreServices.GetSpatialAwarenessSystemDataProvider <IMixedRealitySceneUnderstandingObserver>();

            if (observer == null)
            {
                Debug.LogError("Couldn't access Scene Understanding Observer!");
                return;
            }
            InitToggleButtonState();
        }
        protected override void Start()
        {
            observer = CoreServices.GetSpatialAwarenessSystemDataProvider <IMixedRealitySceneUnderstandingObserver>();

            if (observer == null)
            {
                Debug.LogError("Couldn't access Scene Understanding Observer!");
                return;
            }
            InitToggleButtonState();
            instantiatedPrefabs  = new List <GameObject>();
            observedSceneObjects = new Dictionary <SpatialAwarenessSurfaceTypes, Dictionary <int, SpatialAwarenessSceneObject> >();
        }
Exemplo n.º 3
0
        protected override void Start()
        {
            observer = CoreServices.GetSpatialAwarenessSystemDataProvider <IMixedRealitySceneUnderstandingObserver>();

            if (observer == null)
            {
                Debug.LogError("Couldn't access Scene Understanding Observer! Please make sure the current build target is set to Universal Windows Platform. "
                               + "Visit https://docs.microsoft.com/windows/mixed-reality/mrtk-unity/features/spatial-awareness/scene-understanding for more information.");
                return;
            }
            InitToggleButtonState();
            instantiatedPrefabs  = new List <GameObject>();
            observedSceneObjects = new Dictionary <SpatialAwarenessSurfaceTypes, Dictionary <int, SpatialAwarenessSceneObject> >();
        }