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

SerializedInputActionMap.cs 581B

1234567891011121314151617181920
  1. #if UNITY_EDITOR
  2. using System;
  3. using UnityEditor;
  4. namespace UnityEngine.InputSystem.Editor
  5. {
  6. internal readonly struct SerializedInputActionMap
  7. {
  8. public SerializedInputActionMap(SerializedProperty serializedProperty)
  9. {
  10. wrappedProperty = serializedProperty ?? throw new ArgumentNullException(nameof(serializedProperty));
  11. name = serializedProperty.FindPropertyRelative(nameof(InputActionMap.m_Name)).stringValue;
  12. }
  13. public string name { get; }
  14. public SerializedProperty wrappedProperty { get; }
  15. }
  16. }
  17. #endif