Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Input Action Name#

Input / Input Action Name

  • Can Read

  • Cannot Write

Description#

The name of the specified Input Action

Code#

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;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.