public static SettingsProvider CreateMyCustomSettingsProvider() { var provider = new ScaffoldingSettingsProvider("Preferences/QuickEye/Scaffolding", SettingsScope.User); // Automatically extract all keywords from the Styles. provider.keywords = GetSearchKeywordsFromSerializedObject(ScaffoldingSettings.GetSerializedSettings()); return(provider); }
private void SetupView() { _settings = ScaffoldingSettings.GetOrCreateSettings(); robotoMonoFont = Resources.Load <Font>("QuickEye/Scaffolding/RobotoMono-Regular"); var tree = Resources.Load <VisualTreeAsset>("QuickEye/Scaffolding/ScriptScaffolding"); tree.CloneTree(rootVisualElement); rootVisualElement.AssignQueryResults(this); RegisterEventHandlers(); InitCategoryListView(); InitPreview(); SetupFieldList(); }
public static ScaffoldingSettings GetOrCreateSettings() { if (_instance) { return(_instance); } _instance = CreateInstance <ScaffoldingSettings>(); if (EditorPrefs.HasKey(_editorPrefsKey)) { var json = EditorPrefs.GetString(_editorPrefsKey); JsonUtility.FromJsonOverwrite(json, _instance); } return(_instance); }
public override void OnActivate(string searchContext, VisualElement rootElement) { // This function is called when the user clicks on the MyCustom element in the Settings window. //m_CustomSettings = ScaffoldingSettings.GetSerializedSettings(); _editor = Editor.CreateEditor(ScaffoldingSettings.GetOrCreateSettings()); }
public ScaffoldingRichTextFormatter(ScaffoldingSettings settings) { _settings = settings; }
static ScaffoldingUtility() { _settings = ScaffoldingSettings.GetOrCreateSettings(); _formatProvider = new ScaffoldingRichTextFormatter(_settings); }