提交 1eef8c68 编写于 作者: A Adrian T

Revert "NavMeshSurfaces are now responsible for displaying their debug...

Revert "NavMeshSurfaces are now responsible for displaying their debug representation in the Editor."

This reverts commit 3f4bad4e.
上级 3f4bad4e
...@@ -383,8 +383,6 @@ static void UpdateAsyncBuildOperations() ...@@ -383,8 +383,6 @@ static void UpdateAsyncBuildOperations()
static void RenderBoxGizmoSelected(NavMeshSurface navSurface, GizmoType gizmoType) static void RenderBoxGizmoSelected(NavMeshSurface navSurface, GizmoType gizmoType)
{ {
RenderBoxGizmo(navSurface, gizmoType, true); RenderBoxGizmo(navSurface, gizmoType, true);
navSurface.DrawGizmo();
} }
[DrawGizmo(GizmoType.NotInSelectionHierarchy | GizmoType.Pickable)] [DrawGizmo(GizmoType.NotInSelectionHierarchy | GizmoType.Pickable)]
......
using System.Collections.Generic; using System.Collections.Generic;
using UnityEditor.AI;
namespace UnityEngine.AI namespace UnityEngine.AI
{ {
...@@ -422,14 +421,6 @@ void OnValidate() ...@@ -422,14 +421,6 @@ void OnValidate()
m_TileSize = kMaxTileSize; m_TileSize = kMaxTileSize;
} }
} }
public void DrawGizmo()
{
if (m_NavMeshDataInstance.valid)
{
NavMeshEditorHelpers.DrawSurface(m_NavMeshDataInstance);
}
}
#endif #endif
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册