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 Scale#

Args / Target Scale

  • Can Read

  • Cannot Write

Description#

The Transform scale of the Target object

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Target Scale")]
    [Category("Args/Target Scale")]
    
    [Description("The Transform scale of the Target object")]
    [Image(typeof(IconTarget), ColorTheme.Type.Yellow)]
    
    [Keywords("Target")]
    
    [Serializable]
    public class TypeVector3TargetScale : TypeVector3
    {
        public override Vector3 Get(Args args)
        {
            return args.Target != null ? args.Target.transform.lossyScale : Vector3.zero;
        }

        public override string ToString() => "Target Scale";

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