mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
...
This commit is contained in:
parent
44b3722e1c
commit
6869b631a5
1 changed files with 3 additions and 10 deletions
|
@ -3,8 +3,6 @@ using UnityEditor;
|
|||
using UnityEngine;
|
||||
using UnityEngine.AI;
|
||||
using SanAndreasUnity.Behaviours.World;
|
||||
using UnityEditor.SceneManagement;
|
||||
using System.IO;
|
||||
using System.Collections;
|
||||
|
||||
namespace SanAndreasUnity.Editor
|
||||
|
@ -65,7 +63,9 @@ namespace SanAndreasUnity.Editor
|
|||
void OnGUI()
|
||||
{
|
||||
EditorGUILayout.HelpBox(
|
||||
"Generate nav mesh from loaded world.\nOnly high LOD objects are included.",
|
||||
"Generate nav mesh from loaded world.\n" +
|
||||
"Only high LOD world objects and water are included.\n" +
|
||||
"At the end, you will choose where to save the generated nav mesh.",
|
||||
MessageType.Info,
|
||||
true);
|
||||
|
||||
|
@ -114,13 +114,6 @@ namespace SanAndreasUnity.Editor
|
|||
yield break;
|
||||
}
|
||||
|
||||
UnityEngine.SceneManagement.Scene activeScene = EditorSceneManager.GetActiveScene();
|
||||
if (!activeScene.IsValid())
|
||||
{
|
||||
EditorUtility.DisplayDialog("", "Active scene is not valid", "Ok");
|
||||
yield break;
|
||||
}
|
||||
|
||||
NavMeshBuildSettings navMeshBuildSettings = NavMesh.GetSettingsByID(s_selectedAgentId);
|
||||
|
||||
var navMeshData = s_navMeshData = new NavMeshData(s_selectedAgentId);
|
||||
|
|
Loading…
Add table
Reference in a new issue