Skip to content

Commit

Permalink
clear
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Dec 27, 2023
1 parent e659ccd commit 01fe17e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Editor/UniRecast.Editor/UniRcNavMeshSurfaceEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ private void OnEnable()

private void Clear()
{
var surface = target as UniRcNavMeshSurface;
if (null == surface)
{
Debug.LogError($"not found UniRc NavMesh Surface");
return;
}

surface.NavMesh = null;

// 기본값 초기화
var bs = new RcNavMeshBuildSettings();

Expand Down Expand Up @@ -139,7 +148,7 @@ private void Bake()
var surface = target as UniRcNavMeshSurface;
if (null == surface)
{
Debug.LogError($"not found UniRcNavMeshSurface");
Debug.LogError($"not found UniRc NavMesh Surface");
return;
}

Expand Down

0 comments on commit 01fe17e

Please sign in to comment.