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

Target#

  • Can Read

  • Cannot Write

Description#

The Target game object the calling object targets

Code#

using System;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Target")]
    [Category("Target")]
    
    [Description("The Target game object the calling object targets")]
    [Image(typeof(IconTarget), ColorTheme.Type.Yellow)]
    
    [Keywords("Target")]
    
    [Serializable]
    public class TypeVariableTarget : TypeVariable
    {
        public override Variable Get(Args args)
        {
            return args.TargetComponent<LocalVariable>();
        }

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