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.
Live example
Section titled “Live example”Run it in the browser, read its scripts, and download it as an XR Creator project.
Live example
Disable teleporting during a puzzleStarting a puzzle switches the player camera's Teleport off, so the player cannot aim at all; solving it switches the Teleport back on.
Hold the right mouse button on the floor to aim, release to teleport. Press Start puzzle and try again: nothing happens until you press Solve puzzle.
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(NavMeshWalkableComponent); if (component) log(component.props);}