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 UnityEngine;
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 TypeGameObjectTarget : TypeGameObject
    {
        public override GameObject Get(Args args)
        {
            return args.Target;
        }

        public static GetGameObject Create()
        {
            TypeGameObjectTarget instance = new TypeGameObjectTarget();
            return new GetGameObject(instance);
        }
        
        public override string ToString()
        {
            return "Target";
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.