15 lines
315 B
C#
15 lines
315 B
C#
|
using UnityEditor;
|
|||
|
using UnityEngine.AI;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class NavMeshBuilder
|
|||
|
{
|
|||
|
[MenuItem("Tools/Build NavMesh")]
|
|||
|
public static void BuildNavMesh()
|
|||
|
{
|
|||
|
// <20><><EFBFBD>ô˷<C3B4><CBB7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
UnityEditor.AI.NavMeshBuilder.BuildNavMesh();
|
|||
|
Debug.Log("NavMesh has been built!");
|
|||
|
}
|
|||
|
}
|