I_HandleTrackingModule.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace Ximmerse.XR.InputSystems
  5. {
  6. public struct InitializeHandTrackingModuleParameter
  7. {
  8. public Transform TrackingAnchor;
  9. }
  10. /// <summary>
  11. /// Handle tracking module interface.
  12. /// </summary>
  13. public interface I_HandleTrackingModule
  14. {
  15. /// <summary>
  16. /// Enables hand tracking module
  17. /// </summary>
  18. bool EnableModule(InitializeHandTrackingModuleParameter initParameter);
  19. /// <summary>
  20. /// Disable hand tracking module.
  21. /// </summary>
  22. void DisableModule();
  23. /// <summary>
  24. /// Gets the hand track info
  25. /// </summary>
  26. HandTrackingInfo HandleTrackInfo
  27. {
  28. get;
  29. }
  30. /// <summary>
  31. /// Call per frame to tick the hande tracking module.
  32. /// </summary>
  33. void Tick();
  34. /// <summary>
  35. /// is the module currently enabled
  36. /// </summary>
  37. bool IsModuleEnabled
  38. {
  39. get;
  40. }
  41. }
  42. }