Cute_demon_attacks/meng_yao/Assets/script/NavMeshBuilder.cs

15 lines
315 B
C#
Raw Normal View History

2024-12-09 11:56:41 +08:00
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!");
}
}