| 305 | } |
| 306 | |
| 307 | void NavMeshRuntime::SetTileSize(float tileSize) |
| 308 | { |
| 309 | ScopeLock lock(Locker); |
| 310 | |
| 311 | // Skip if the same or invalid |
| 312 | if (_tileSize == tileSize || tileSize < 1) |
| 313 | return; |
| 314 | |
| 315 | // Dispose the existing mesh (its invalid) |
| 316 | if (_navMesh) |
| 317 | { |
| 318 | Dispose(); |
| 319 | } |
| 320 | |
| 321 | _tileSize = tileSize; |
| 322 | } |
| 323 | |
| 324 | void NavMeshRuntime::EnsureCapacity(int32 tilesToAddCount) |
| 325 | { |
no test coverage detected