NavMeshAreaclass

An area that influences the NavMesh generation. Areas can be used to block off parts of the NavMesh. Static areas have almost no performance overhead. Moving areas at runtime will have an impact on performance if done excessively.

objectVolumeComponentNavMeshArea
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.NavMeshArea : Sandbox.Volumes.VolumeComponent

Constructors1

Showing 1 constructors

Methods1

Showing 1 methods

protected virtual System.Threading.Tasks.Task OnLoad(Sandbox.LoadingContext context)PROTECTEDVIRTUAL

ParameterTypeDescription
contextLoadingContext
Returns:Task

Properties3

Showing 3 properties

public bool Sandbox.NavMeshArea.IsBlocker { get; set; }PUBLICGETSET

Whether navmesh generation in this area will be completely disabled.

Returns:bool

public Sandbox.Collider Sandbox.NavMeshArea.LinkedCollider { get; set; }PUBLICGETSETOBSOLETE

The collider this area's shape is based on. In almost every case, you will want to use a trigger collider for this.

Obsolete: Use the SceneVolume property inherited from VolumeComponent instead

Returns:Collider

On this page