using Leopotam.Ecs; using UnityEditor; using UnityEditorInternal; using UnityEngine; namespace Asset_Cleaner { class RequestRepaintEvt { } class SysRepaintWindow : IEcsRunSystem, IEcsInitSystem { EcsFilter Repaint = null; public void Init() { var wd = Globals.Value; wd.SceneFoldout = new GUIContent(AssetPreview.GetMiniTypeThumbnail(typeof(SceneAsset))); wd.ExpandScenes = true; wd.ExpandFiles = true; wd.ScrollPos = Vector2.zero; wd.Window.titleContent = new GUIContent("Asset Cleaner v1.0"); } public void Run() { var wd = Globals.Value; if (Repaint.IsEmpty()) return; wd.Window.Repaint(); InternalEditorUtility.RepaintAllViews(); Repaint.AllDestroy(); } } }