AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
IPointingSource.cs
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Licensed under the MIT License. See LICENSE in the project root for license information.
3 
4 using System;
5 using UnityEngine;
6 using UnityEngine.EventSystems;
7 
8 namespace HoloToolkit.Unity.InputModule
9 {
13  public interface IPointingSource
14  {
15  bool InteractionEnabled { get; }
16 
17  float? ExtentOverride { get; }
18 
19  [Obsolete("Will be removed in a later version. For equivalent behavior have Rays return a RayStep array with a single element.")]
20  Ray Ray { get; }
21 
22  RayStep[] Rays { get; }
23 
24  LayerMask[] PrioritizedLayerMasksOverride { get; }
25 
26  PointerResult Result { get; set; }
27 
28  [Obsolete("Will be removed in a later version. Use OnPreRaycast / OnPostRaycast instead.")]
29  void UpdatePointer();
30 
31  void OnPreRaycast();
32 
33  void OnPostRaycast();
34 
35  bool OwnsInput(BaseEventData eventData);
36 
37  bool FocusLocked { get; set; }
38  }
39 }
Implement this interface to register your pointer as a pointing source. This could be gaze based or m...