Common API Examples
Runtime Navmesh Baker – Common API Examples
Getting a Coordinator
// Recommended: reference the one you’ve placed in your scene
var coord = BakerCoordinator.Active;
// Fallback: search the scene (slower, but safe if only one exists)
var coord = FindObjectOfType<BakerCoordinator>();Setting the Target to Follow
coord.SetCenterTarget(player.transform);coord.SetCenterTarget(player.transform, rebakeNow: false);Starting Baking Manually
Marking Surfaces Dirty
Checking Bake Status
Example: Spawning a Player Dynamically
Quick Reference
Last updated