using System; using System.Collections.Generic; using UnityEngine; using UnityEditor; using UnityEngine.SceneManagement; using Object = UnityEngine.Object; using System.Linq; using AssetUsageFinder.Styles; using UnityEditor.SceneManagement; namespace AssetUsageFinder { class DependencyWindow : EditorWindow { Vector2 _scrollPos; [SerializeField] DependencyAbstractFinder _data; [SerializeField] protected FindModeEnum _findMode; bool _expandFiles = true; bool _expandScenes = true; static GUIContent _sceneIcon; Rect _popupButtonRect; PrevClick _click; List _postponedActions; [Serializable] public class Style { public ContentStylePair LookupBtn = new ContentStylePair(); public GUIStyle TabBreadcrumb0 = new GUIStyle(); public GUIStyle TabBreadcrumb1 = new GUIStyle(); public GUIStyle RowMainAssetBtn = new GUIStyle(); public Vector2 Size = new Vector2(250f, 800f); public GUIStyle RowLabel = new GUIStyle(); public static Style FindSelf() { var res = AufUtils.FirstOfType(); return EditorGUIUtility.isProSkin ? res.Pro : res.Personal; } } public static Style StyleInstance => Globals