Unity NavMesh & NPC AI
Discovery
get_navigation_settings— agent radius, height, areas from ProjectSettingsget_ai_ml_package_inventory—com.unity.ai.navigationvs legacy built-infind_ai_related_scripts— label NavMesh / AI navigationlist_prefabs_with_componentwithNavMeshAgentget_scene_components_by_typewithNavMeshAgentper scene
Implementation checklist
- Bake NavMesh for each playable scene; store
NavMeshDataassets in version control. - Tune agent avoidance priority and obstacle carving for crowds.
- Off-mesh links for jumps/doors — grep scenes for
OffMeshLinkusage via script scan. - Separate locomotion (NavMeshAgent) from decision (state machine / behavior tree).
Related tools
get_tags_and_layers— AI layers vs player/environment collisionget_layer_collision_matrix— agent vs projectile layers