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 Obstacle Carve Only Stationary#

Navigation / Nav Mesh Obstacle / Set Nav Mesh Obstacle Carve Only Stationary

Description#

Sets the Carve Only Stationary property of Nav Mesh Obstacle component

Parameters#

Name Description
Nav Mesh Obstacle
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 Obstacle Carve Only Stationary")]
    [Category("Navigation/Nav Mesh Obstacle/Carve Only Stationary")]
    [Description("Sets the Carve Only Stationary property of Nav Mesh Obstacle component")]

    [Image(typeof(IconNavmeshObstacle), ColorTheme.Type.Red)]
    [Keywords("Navigation, NavMesh, AI, Carve, Block")]

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

    [Serializable]
    public class GenInstructionBool_NavMeshObstacle_SetCarveOnlyStationary : Instruction
    {
        [SerializeField] private GetGameObject m_NavMeshObstacle = new GetGameObject(
            new GenTypeGameObject_NavMeshObstacle()
        );

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

        protected override string GetTitle(GameObject source)
        {
            string member = TextUtils.ThemeAsKeyword("Carve Only Stationary");
            return $"{this.m_NavMeshObstacle} {member} = {this.m_Value}";
        }

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

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

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