No Description
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.

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