Runtime Navmesh Baker 1.3.0
Generic Runtime spawn and instance pooling system for spawning random AI agents around a map. Works with ANY AI system easily.
Loading...
Searching...
No Matches
MegaCrush.RuntimeNavmeshBaker.BakerEvents Class Reference

Global event hub for runtime baking. More...

Events

static Action< DynamicNavMeshSurface, Bounds > OnBakeStarted
 Raised when a per-tile bake starts.
 
static Action< DynamicNavMeshSurface, Bounds, float > OnBakeCompleted
 Raised when a per-tile bake completes successfully.
 
static Action< DynamicNavMeshSurface, Bounds, string > OnBakeFailed
 Raised when a bake fails or is skipped.
 
static Action< int, Bounds > OnCombinedBakeStarted
 Raised when a combined-window bake starts.
 
static Action< int, Bounds, float > OnCombinedBakeCompleted
 Raised when a combined-window bake completes successfully.
 

Detailed Description

Global event hub for runtime baking.

The NavMeshBakerService raises these events whenever a per-tile or combined bake starts, completes, or fails.

Subscribe to these events to coordinate gameplay logic with navmesh availability (e.g., spawning agents only after a bake completes).

Event Documentation

◆ OnBakeCompleted

Action<DynamicNavMeshSurface, Bounds, float> MegaCrush.RuntimeNavmeshBaker.BakerEvents.OnBakeCompleted
static

Raised when a per-tile bake completes successfully.

Parameters
surfaceThe surface that completed (may be null in combined mode).
boundsThe world-space bounds of the bake.
secondsDuration in seconds from async start to completion.

◆ OnBakeFailed

Action<DynamicNavMeshSurface, Bounds, string> MegaCrush.RuntimeNavmeshBaker.BakerEvents.OnBakeFailed
static

Raised when a bake fails or is skipped.

Parameters
surfaceThe surface associated with the failure (may be null).
boundsThe attempted world-space bounds.
reasonTextual reason (e.g., "no sources").

◆ OnBakeStarted

Action<DynamicNavMeshSurface, Bounds> MegaCrush.RuntimeNavmeshBaker.BakerEvents.OnBakeStarted
static

Raised when a per-tile bake starts.

Parameters
surfaceThe surface being baked (may be null in combined mode).
boundsThe world-space bounds of the bake request.

◆ OnCombinedBakeCompleted

Action<int, Bounds, float> MegaCrush.RuntimeNavmeshBaker.BakerEvents.OnCombinedBakeCompleted
static

Raised when a combined-window bake completes successfully.

Parameters
agentTypeIdThe agent type baked.
boundsThe world-space bounds of the combined window.
secondsDuration in seconds from async start to completion.

◆ OnCombinedBakeStarted

Action<int, Bounds> MegaCrush.RuntimeNavmeshBaker.BakerEvents.OnCombinedBakeStarted
static

Raised when a combined-window bake starts.

Parameters
agentTypeIdThe agent type being baked.
boundsThe world-space bounds of the combined window.

The documentation for this class was generated from the following file: