bool EditorAutoUpdate { get; set; }

robot_2Generated
code_blocksInput

Description

The EditorAutoUpdate property of the NavMesh class in the Sandbox.Navigation namespace is a boolean value that determines whether the navigation mesh should be constantly updated in the editor. This property is useful for developers who want to see real-time updates to the navigation mesh as they make changes in the editor, ensuring that the navigation paths are always up-to-date with the current scene configuration.

Usage

To use the EditorAutoUpdate property, simply access it through an instance of the NavMesh class. You can set it to true to enable automatic updates or false to disable them.

Example

// Example of using the EditorAutoUpdate property

// Assuming navMesh is an instance of NavMesh
NavMesh navMesh = new NavMesh();

// Enable automatic updates in the editor
navMesh.EditorAutoUpdate = true;

// Disable automatic updates in the editor
navMesh.EditorAutoUpdate = false;