IndieGame/client/Packages/com.unity.inputsystem@1.7.0/InputSystem/Editor/UITKAssetEditor/SerializedInputActionMap.cs

21 lines
581 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00
#if UNITY_EDITOR
using System;
using UnityEditor;
namespace UnityEngine.InputSystem.Editor
{
internal readonly struct SerializedInputActionMap
{
public SerializedInputActionMap(SerializedProperty serializedProperty)
{
wrappedProperty = serializedProperty ?? throw new ArgumentNullException(nameof(serializedProperty));
name = serializedProperty.FindPropertyRelative(nameof(InputActionMap.m_Name)).stringValue;
}
public string name { get; }
public SerializedProperty wrappedProperty { get; }
}
}
#endif