static SettingsProvider CreateProvider() { MyCustomSettingsProvider mySP = new MyCustomSettingsProvider("Project/My Custom Settings", SettingsScope.Project); mySP.guiHandler = OnProviderGUI; return(mySP); }
public static SettingsProvider CreateMyCustomSettingsProvider() { if (IsSettingsAvailable()) { var provider = new MyCustomSettingsProvider("Project/MyCustomSettingsProvider", SettingsScope.Project); // Automatically extract all keywords from the Styles. provider.keywords = GetSearchKeywordsFromGUIContentProperties <Styles> (); return(provider); } // Settings Asset doesn't exist yet; no need to display anything in the Settings window. return(null); }