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 Vector3#

Input / Input Action Vector3

  • Can Read

  • Cannot Write

Description#

Returns an Input Action value of type Vector3

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

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

    [Description("Returns an Input Action value of type Vector3")]
    [Image(typeof(IconBoltOutline), ColorTheme.Type.Teal)]

    [Keywords("Joystick", "Movement", "Stick")]

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

        public override Vector3 Get(Args args)
        {
            UnityEngine.InputSystem.InputAction inputAction = this.m_InputAction.InputAction;
            return inputAction?.ReadValue<Vector3>() ?? default;
        }

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

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.