暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ExtendedAxisEventData.cs 557B

123456789101112131415161718192021
  1. #if PACKAGE_DOCS_GENERATION || UNITY_INPUT_SYSTEM_ENABLE_UI
  2. using UnityEngine.EventSystems;
  3. namespace UnityEngine.InputSystem.UI
  4. {
  5. // AxisEventData has no ToString. But that's the only thing we add so keeping
  6. // it internal.
  7. internal class ExtendedAxisEventData : AxisEventData
  8. {
  9. public ExtendedAxisEventData(EventSystem eventSystem)
  10. : base(eventSystem)
  11. {
  12. }
  13. public override string ToString()
  14. {
  15. return $"MoveDir: {moveDir}\nMoveVector: {moveVector}";
  16. }
  17. }
  18. }
  19. #endif