Update
This commit is contained in:
21
Assets/Editors/ForceCleanupNavMesh.cs
Normal file
21
Assets/Editors/ForceCleanupNavMesh.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.AI;
|
||||
|
||||
namespace Editors
|
||||
{
|
||||
public static class ForceCleanupNavMeshTool
|
||||
{
|
||||
[MenuItem("Tools/Force Cleanup NavMesh")]
|
||||
public static void ForceCleanupNavMesh()
|
||||
{
|
||||
if (Application.isPlaying)
|
||||
return;
|
||||
|
||||
NavMesh.RemoveAllNavMeshData();
|
||||
Debug.Log("Force Cleanup NavMesh: Successfully removed all baked NavMesh data.");
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
2
Assets/Editors/ForceCleanupNavMesh.cs.meta
Normal file
2
Assets/Editors/ForceCleanupNavMesh.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0dbfda1e4acd6dd4c9791a3534ec5728
|
||||
Reference in New Issue
Block a user