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

Source#

  • Can Read

  • Cannot Write

Description#

The Local Variable attached to the Source game object making the call

Code#

using System;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Source")]
    [Category("Source")]
    
    [Description("The Local Variable attached to the Source game object making the call")]
    [Image(typeof(IconSource), ColorTheme.Type.Yellow)]
    
    [Keywords("Source", "Self")]
    
    [Serializable]
    public class TypeVariableSource : TypeVariable
    {
        public override Variable Get(Args args)
        {
            return args.SourceComponent<LocalVariable>();
        }

        public override string ToString()
        {
            return "Source";
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.