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

Variable#

Variable / Variable

  • Cannot Read

  • Can Write

Description#

The value of a Variable or Local Variable

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Set]
    
    [Title("Variable")]
    [Category("Variable/Variable")]
    
    [Description("The value of a Variable or Local Variable")]
    [Image(typeof(IconVariable), ColorTheme.Type.TextLight, typeof(BadgeVariable))]
    
    [Serializable]
    public class TypeVector3VariableSet : TypeVector3
    {
        [SerializeField] private SetVariableValue m_Variable = new SetVariableValue();

        public override Vector3 Get(Args args)
        {
            return this.m_Variable.Get<Vector3>(args);
        }
        
        public override void Set(Vector3 value, Args args)
        {
            this.m_Variable.Set(value, args);
        }

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

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