---
tags:
    - "Button"
    - "Key"
    - "Down"
    - "Just"
    - "Trigger"
---

# Input Action Performed this Frame

[Input](index.md) / **Input Action Performed this Frame**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :red_circle: Cannot Write

</div>

## Description

Returns true the frame the specified Input Action is performed

## Code

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

namespace VisualScript.Runtime
{
    [Get]

    [Title("Input Action Performed this Frame")]
    [Category("Input/Input Action Performed this Frame")]

    [Description("Returns true the frame the specified Input Action is performed")]
    [Image(typeof(IconBoltOutline), ColorTheme.Type.Teal, typeof(BadgeArrowDown))]

    [Keywords("Button", "Key", "Down", "Just", "Trigger")]

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

        public override bool Get(Args args)
        {
            UnityEngine.InputSystem.InputAction inputAction = this.m_InputAction.InputAction;
            return inputAction?.WasPerformedThisFrame() ?? false;
        }

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

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

```

