SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

4 years ago
  1. #if UNITY_INPUT_SYSTEM
  2. using UnityEngine.Scripting;
  3. using UnityEngine.InputSystem.Controls;
  4. using UnityEngine.InputSystem.Layouts;
  5. namespace UnityEngine.XR.ARSubsystems
  6. {
  7. /// <summary>
  8. /// A Handheld AR device layout, for use with the Input System, representing a mobile AR device.
  9. /// </summary>
  10. [Preserve]
  11. [InputControlLayout]
  12. public class HandheldARInputDevice : UnityEngine.InputSystem.InputDevice
  13. {
  14. /// <summary>
  15. /// The position in 3D space of the device.
  16. /// </summary>
  17. [Preserve]
  18. [InputControl]
  19. public Vector3Control devicePosition { get; private set; }
  20. /// <summary>
  21. /// The rotation in 3D space of the device.
  22. /// </summary>
  23. [Preserve]
  24. [InputControl]
  25. public QuaternionControl deviceRotation { get; private set; }
  26. protected override void FinishSetup()
  27. {
  28. base.FinishSetup();
  29. devicePosition = GetChildControl<Vector3Control>("devicePosition");
  30. deviceRotation = GetChildControl<QuaternionControl>("deviceRotation");
  31. }
  32. }
  33. }
  34. #endif