public InspectorTab(EditorElement editor) { this.editor = editor; this.tracker = PropertyEditorRef.GetTracker(inspector.propertyEditor); name = GetTitle(); RestoreTabState(); AddToClassList(EditorTabClass); AddToClassList("toolbar-button"); RegisterCallbacks(); preview = AssetPreview.GetAssetPreview(target); thumbnail = AssetPreview.GetMiniThumbnail(target); icon = new FluentUITK.Icon(); Add(icon); this.Query(className: "unity-toggle__input").First().RemoveFromHierarchy(); }
void SaveAndRebuildInspectors() { prefs.SaveToUserData(); PropertyEditorRef.RebuildAllInspectors(); }
internal SmartInspector(EditorWindow propertyEditor) { this.propertyEditor = propertyEditor; this.tracker = PropertyEditorRef.GetTracker(propertyEditor); }