void DrawTagField() { EditorGUILayout.PropertyField(modifyTag, new GUIContent("Modify Tag", "Should the tags of the nodes be modified")); if (!modifyTag.hasMultipleDifferentValues && modifyTag.boolValue) { EditorGUI.indentLevel++; EditorGUI.showMixedValue = tagValue.hasMultipleDifferentValues; EditorGUI.BeginChangeCheck(); var newTag = EditorGUILayoutx.TagField("Tag Value", tagValue.intValue); if (EditorGUI.EndChangeCheck()) { tagValue.intValue = newTag; } EditorGUI.indentLevel--; } 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")); } }