Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 internal SmartInspector(EditorWindow propertyEditor)
 {
     this.propertyEditor = propertyEditor;
     this.tracker        = PropertyEditorRef.GetTracker(propertyEditor);
 }