void DrawTagField()
{
if (PropertyField("modifyTag"))
{
var tagValue = FindProperty("setTag");
EditorGUI.indentLevel++;
EditorGUI.showMixedValue = tagValue.hasMultipleDifferentValues;
EditorGUI.BeginChangeCheck();
var newTag =
EditorGUILayoutx.TagField("Tag Value", tagValue.intValue, () => AstarPathEditor.EditTags());
if (EditorGUI.EndChangeCheck())
{
tagValue.intValue = newTag;
}
if (GUILayout.Button(
"Tags can be used to restrict which units can walk on what ground. Click here for more info",
"HelpBox"))
{
Application.OpenURL(AstarUpdateChecker.GetURL("tags"));
}
EditorGUI.indentLevel--;
}
}