private void LocationManagerSettings(bool helpEnabled) { if (m_gaiaSettings != null) { EditorGUI.BeginChangeCheck(); m_gaiaSettings.m_enableLocationManager = m_editorUtils.Toggle("EnableLocationManager", m_gaiaSettings.m_enableLocationManager, helpEnabled); if (m_gaiaSettings.m_enableLocationManager) { m_editorUtils.Text("LocationManagerInfo"); if (m_editorUtils.Button("OpenLocationManager")) { LocationManagerEditor.ShowLocationManager(); } } if (EditorGUI.EndChangeCheck()) { if (m_gaiaSettings.m_enableLocationManager) { LocationManagerEditor.AddLocationSystem(); } else { LocationManagerEditor.RemoveLocationSystem(); } } } }
public override void OnInspectorGUI() { EditorGUILayout.HelpBox("The location manager allows you to create bookmark locations to allow you to quickly jump from bookmark to bookmark to help navigate around the scene.", MessageType.Info); if (GUILayout.Button(new GUIContent("Open Location Manager", "Opens the location manager window"))) { LocationManagerEditor.ShowLocationManager(); } }