Initialise the area index to -1
Fixes wrong display of area type (Walkable) in the case the area type name is removed i.e. empty string.
This commit is contained in:
Родитель
99ec3d7ada
Коммит
e9768b179a
|
@ -7,7 +7,7 @@ namespace UnityEditor.AI
|
|||
{
|
||||
public static void AreaPopup(string labelName, SerializedProperty areaProperty)
|
||||
{
|
||||
var areaIndex = 0;
|
||||
var areaIndex = -1;
|
||||
var areaNames = GameObjectUtility.GetNavMeshAreaNames();
|
||||
for (var i = 0; i < areaNames.Length; i++)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче