public static SettingsProvider CreateMyCustomSettingsProvider() { // First parameter is the path in the Settings window. // Second parameter is the scope of this setting: it only appears in the Project Settings window. var provider = new SettingsProvider("FREditorSettings", SettingsScope.User) { // By default the last token of the path is used as display name if no label is provided. label = "FlowReactor", // Create the SettingsProvider and initialize its drawing (IMGUI) function in place: guiHandler = (searchContext) => { var settings = (FREditorSettings)FREditorSettings.GetSerializedSettings().targetObject as FREditorSettings; FREditorSettingsGUI.Draw(settings); }, // Populate the search keywords to enable smart search filtering and label highlighting: keywords = new HashSet <string>(new[] { "FlowReactor" }) }; return(provider); }
void SettingsInspector() { FREditorSettingsGUI.Draw(settings); }