Ejemplo n.º 1
0
        /// <summary>
        /// Initializes event data and creates the observer.
        /// </summary>
        public override void Initialize()
        {
            meshEventData = new MixedRealitySpatialAwarenessEventData <SpatialAwarenessMeshObject>(EventSystem.current);

            ReadProfile();

            base.Initialize();
        }
        /// <inheritdoc/>
        public override void Initialize()
        {
            base.Initialize();

            meshEventData = new MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject>(EventSystem.current);

            InitializeInternal();
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Performs initialization tasks for the spatial awareness system.
        /// </summary>
        private void InitializeInternal()
        {
            meshEventData = new MixedRealitySpatialAwarenessEventData <SpatialAwarenessMeshObject>(EventSystem.current);

#if UNITY_EDITOR
            if (!UnityEditor.PlayerSettings.WSA.GetCapability(UnityEditor.PlayerSettings.WSACapability.SpatialPerception))
            {
                UnityEditor.PlayerSettings.WSA.SetCapability(UnityEditor.PlayerSettings.WSACapability.SpatialPerception, true);
            }
#endif // UNITY_EDITOR
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Performs initialization tasks for the spatial awareness system.
 /// </summary>
 private void InitializeInternal()
 {
     meshEventData = new MixedRealitySpatialAwarenessEventData <SpatialAwarenessMeshObject>(EventSystem.current);
 }