Skip to content

Navmesh Walkable

Updated

Marks this entity’s surfaces as ground agents walk on when the navmesh is baked. Too steep stays unwalkable.

Type
comp-navmesh-walkable
Script class
NavMeshWalkableComponent
Per entity
One
Version
1.0.0

Read about it in Navigation meshes: what it does, how to use it from a script, and examples.

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(NavMeshWalkableComponent);
if (component) log(component.props);
}