Navmesh Link
Updated
A shortcut between two points: a jump, ladder or teleport.
- Type
comp-navmesh-link- Script class
NavMeshLinkComponent- Per entity
- One
- Version
- 1.0.0
Read about it in NavMesh Links: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
arcHeight |
0 ≤ x ≤ 10 |
|
end |
||
end.x |
||
end.y |
||
end.z |
||
radius |
0. |
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Walk across a gapA hero walks back and forth between two platforms that do not touch: a NavMesh Link across the gap lets its path continue, and the script logs when the agent leaves the ground to cross it.
Watch the hero jump the gap on each crossing. Drag to orbit the camera, scroll to zoom.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(NavMeshLinkComponent); if (component) log(component.props);}