public override void OnInspectorGUI() { serializedObject.Update(); EditorGUILayout.LabelField("Navigation Settings - editing", EditorStyles.boldLabel); navigationSettingsEditingHelper.DrawSettingsEditor(false); if (Application.isPlaying) { EditorGUILayout.HelpBox("Settings cannot be changed in play mode.", MessageType.Info); } EditorGUILayout.Space(); EditorGUILayout.LabelField("Navigation Settings - export / import", EditorStyles.boldLabel); EditorGUILayout.BeginHorizontal(); if (GUILayout.Button("Export")) { ExportSettingsPreset(); } if (GUILayout.Button("Import")) { ImportSettingsPreset(); } EditorGUILayout.EndHorizontal(); EditorGUILayout.Space(); EditorGUILayout.LabelField("Debug Settings", EditorStyles.boldLabel); EditorGUILayout.PropertyField(debugUnitProperty); if (Application.isPlaying) { EditorGUILayout.HelpBox("If you change the drawing settings, the changes will not appear until the next BuildingProcess. You can force them using ContextMenu -> ForceGizmosDrawerUpdate.", MessageType.Warning); } serializedObject.ApplyModifiedProperties(); }
public override void OnInspectorGUI() { serializedObject.Update(); navigationSettingsEditingHelper.DrawSettingsEditor(false); serializedObject.ApplyModifiedProperties(); }