---
tags:
    - "Label"
    - "Title"
    - "Identifier"
---

# Input Action Name

[Input](index.md) / **Input Action Name**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

The name of the specified Input Action

## Code

```cs
using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

    [Title("Input Action Name")]
    [Category("Input/Input Action Name")]

    [Description("The name of the specified Input Action")]
    [Image(typeof(IconBoltOutline), ColorTheme.Type.Teal, typeof(BadgeTag))]

    [Keywords("Label", "Title", "Identifier")]

    [Serializable]
    public class TypeStringInputActionName : TypeString
    {
        [SerializeField] private InputActionFromAsset m_InputAction = new InputActionFromAsset();

        public override string Get(Args args)
        {
            UnityEngine.InputSystem.InputAction inputAction = this.m_InputAction.InputAction;
            return inputAction != null ? inputAction.name : string.Empty;
        }

        public override string ToString()
        {
            return $"{this.m_InputAction} Name";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}

```

