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

Vector3 Z#

Vectors / Vector3 Z

  • Can Read

  • Cannot Write

Description#

The Z component of a Vector3

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    
    [Title("Vector3 Z")]
    [Category("Vectors/Vector3 Z")]
    
    [Description("The Z component of a Vector3")]
    [Image(typeof(IconVector3), ColorTheme.Type.Lime, typeof(BadgeZ))]
    
    [Keywords("Value", "Component", "Z", "B", "Roll", "Forward")]
    
    [Serializable]
    public class TypeNumberVector3Z : TypeNumber
    {
        [SerializeField] private GetVector3 m_Vector3 = new GetVector3();

        public override double GetPreview(GameObject source) => this.m_Vector3.GetPreview(source).z;

        public override double Get(Args args)
        {
            return this.m_Vector3.Get(args).z;
        }

        public override string ToString()
        {
            return $"{this.m_Vector3}.z";
        }
        
        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.