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

Set Nav Mesh Agent Update Up Axis#

Navigation / Nav Mesh Agent / Set Nav Mesh Agent Update Up Axis

Description#

Sets the Update Up Axis property of Nav Mesh Agent component

Parameters#

Name Description
Nav Mesh Agent
Value

Code#

// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.AI;

namespace VisualScript.Runtime
{
    [Title("Set Nav Mesh Agent Update Up Axis")]
    [Category("Navigation/Nav Mesh Agent/Update Up Axis")]
    [Description("Sets the Update Up Axis property of Nav Mesh Agent component")]

    [Image(typeof(IconNavmeshAgent), ColorTheme.Type.Red)]
    [Keywords("Navigation, NavMesh, AI, Pathfinding, Agent")]

    [Parameter("Nav Mesh Agent")]
    [Parameter("Value")]

    [Serializable]
    public class GenInstructionBool_NavMeshAgent_SetUpdateUpAxis : Instruction
    {
        [SerializeField] private GetGameObject m_NavMeshAgent = new GetGameObject(
            new GenTypeGameObject_NavMeshAgent()
        );

        [SerializeField] private GetBool m_Value = new GetBool();

        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Update Up Axis");
            return $"{this.m_NavMeshAgent} {member} = {this.m_Value}";
        }

        protected override Awaitable Run(Args args)
        {
            NavMeshAgent component = this.m_NavMeshAgent.Get<NavMeshAgent>(args);
            if (component == null) return Done;

            component.updateUpAxis = (bool) this.m_Value.Get(args);

            return Done;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.