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

  • Can Read

  • Cannot Write

Description#

The value of a Variable or Local Variable

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [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 TypeSpriteVariableGet : TypeSprite
    {
        [SerializeField] private GetVariableValue m_Variable = new GetVariableValue();

        public override Sprite Get(Args args)
        {
            return this.m_Variable.Get<Sprite>(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.