Manages NavMeshData and bound NavMeshDataInstance per JobKey. Instances are placed at identity so data-local == world.
More...
|
NavMeshData | EnsureData (JobKey key, out NavMeshDataInstance instance) |
| Ensure a NavMeshData exists for the key and that an instance is bound at identity. If an instance is already valid, it is kept (no remove/rebind churn).
|
|
void | EnsurePlaceholdersForSurface (DynamicNavMeshSurface surface, int[] agentTypeIds) |
| Pre-create NavMeshData records for a surface’s agent types without binding instances yet. The service will bind when a bake actually starts.
|
|
void | RemoveAll () |
| Unbind all instances and clear all data.
|
|
void | Remove (JobKey key) |
| Remove a specific key (unbind instance if valid).
|
|
void | RemoveForSurface (int surfaceId) |
| Remove all keys that belong to a given surface ID.
|
|
Manages NavMeshData and bound NavMeshDataInstance per JobKey. Instances are placed at identity so data-local == world.
◆ EnsureData()
NavMeshData MegaCrush.RuntimeNavmeshBaker.DataManager.EnsureData |
( |
JobKey | key, |
|
|
out NavMeshDataInstance | instance ) |
Ensure a NavMeshData exists for the key and that an instance is bound at identity. If an instance is already valid, it is kept (no remove/rebind churn).
◆ EnsurePlaceholdersForSurface()
void MegaCrush.RuntimeNavmeshBaker.DataManager.EnsurePlaceholdersForSurface |
( |
DynamicNavMeshSurface | surface, |
|
|
int[] | agentTypeIds ) |
Pre-create NavMeshData records for a surface’s agent types without binding instances yet. The service will bind when a bake actually starts.
◆ Remove()
void MegaCrush.RuntimeNavmeshBaker.DataManager.Remove |
( |
JobKey | key | ) |
|
Remove a specific key (unbind instance if valid).
◆ RemoveAll()
void MegaCrush.RuntimeNavmeshBaker.DataManager.RemoveAll |
( |
| ) |
|
Unbind all instances and clear all data.
◆ RemoveForSurface()
void MegaCrush.RuntimeNavmeshBaker.DataManager.RemoveForSurface |
( |
int | surfaceId | ) |
|
Remove all keys that belong to a given surface ID.
◆ _dataByKey
readonly Dictionary<JobKey, NavMeshData> MegaCrush.RuntimeNavmeshBaker.DataManager._dataByKey = new() |
|
private |
◆ _instances
readonly Dictionary<JobKey, NavMeshDataInstance> MegaCrush.RuntimeNavmeshBaker.DataManager._instances = new() |
|
private |
The documentation for this class was generated from the following file:
- D:/projects/Asset Store Packages/com.pixelwizards.runtimenavmeshbaker/Code/Runtime/Core/DataManager.cs