s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Components
NavMeshLink
chevron_left Components
class
NavMeshLink

Constructors

functionsNavMeshLink

Fields

crop_dinConnectionRadiuscrop_dinIsBiDirectional

Properties

data_objectAreadata_objectLinkEntereddata_objectLinkExiteddata_objectLocalEndPositiondata_objectLocalStartPositiondata_objectWorldEndPositiondata_objectWorldEndPositionOnNavmeshdata_objectWorldStartPositiondata_objectWorldStartPositionOnNavmesh

Methods

lockDrawGizmoslockOnLinkEnteredlockOnLinkExited
NavMeshLink
NavigationLinks connect navigation mesh polygons for pathfinding and enable shortcuts like ladders, jumps, or teleports.
class Sandbox .account_tree extends Component
Sandbox.Engine

build Constructors 1

NavMeshLink ()

crop_din Fields 2

ConnectionRadius
float
Radius that will be searched at the start and end positions for a connection to the navmesh.
IsBiDirectional
bool
Whether this link can be traverse bi-directional or only start towards end.

data_object Properties 9

Area
NavMeshAreaDefinition
The NavMesh area definition to apply to this link.
LinkEntered
Action`1
Emitted when an agent enters the link.
LinkExited
Action`1
Emitted when an agent exits the link.
LocalEndPosition
Vector3
End position relative to the game object's position.
LocalStartPosition
Vector3
Start position relative to the game object's position.
WorldEndPosition
Vector3
End position in world space.
WorldEndPositionOnNavmesh
Nullable`1
End position in world space snapped to the navmesh.
WorldStartPosition
Vector3
Start position in world space.
WorldStartPositionOnNavmesh
Nullable`1
Start position in world space snapped to the navmesh.

functions Methods 3

DrawGizmos ()
OnLinkEntered (agent)
Called when an agent enters the link.
OnLinkExited (agent)
Called when an agent exits the link.

Inheritance

Component
NavMeshLink
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter