s&box docs

public class Sandbox.NavMeshLink : Sandbox.Component

NavigationLinks connect navigation mesh polygons for pathfinding and enable shortcuts like ladders, jumps, or teleports.

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 3 methods

protected virtual void DrawGizmos()

protected virtual void OnLinkEntered(Sandbox.NavMeshAgent agent)

Called when an agent enters the link.

protected virtual void OnLinkExited(Sandbox.NavMeshAgent agent)

Called when an agent exits the link.

Properties

Showing 9 properties

public System.Action`1<Sandbox.NavMeshAgent> Sandbox.NavMeshLink.LinkEntered { get; set; }

Emitted when an agent enters the link.

public System.Action`1<Sandbox.NavMeshAgent> Sandbox.NavMeshLink.LinkExited { get; set; }

Emitted when an agent exits the link.

public Vector3 Sandbox.NavMeshLink.LocalEndPosition { get; set; }

End position relative to the game object's position.

public Vector3 Sandbox.NavMeshLink.LocalStartPosition { get; set; }

Start position relative to the game object's position.

public Vector3 Sandbox.NavMeshLink.WorldEndPosition { get; set; }

End position in world space.

public System.Nullable`1<Vector3> Sandbox.NavMeshLink.WorldEndPositionOnNavmesh { get; set; }

End position in world space snapped to the navmesh.

public Vector3 Sandbox.NavMeshLink.WorldStartPosition { get; set; }

Start position in world space.

public System.Nullable`1<Vector3> Sandbox.NavMeshLink.WorldStartPositionOnNavmesh { get; set; }

Start position in world space snapped to the navmesh.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.NavMeshLink

On this page