コード例 #1
0
 public void Init(DependencyAbstractFinder d)
 {
     _data                = d;
     _labelMaxWidth       = CalculateContentMaxWidth(EditorStyles.label, _data.Dependencies.SelectMany(dd => dd.Properties.Select(p => p.Content)));
     _rowPropWidth        = CalculateContentMaxWidth(EditorStyles.label, _data.Target.Nested.Union(new[] { _data.Target.Root }).Where(o => o).Select(o => new GUIContent((o is ScriptableObject || o is MonoScript) ? o.ToString() : o.name)));
     titleContent         = new GUIContent($"{FindMode.GetWindowTitleByFindMode(_findMode)}");
     titleContent.tooltip = _data.Title;
 }
コード例 #2
0
        public void Init(DependencyAbstractFinder d)
        {
            _data = d;
            // _labelMaxWidth = CalculateContentMaxWidth(EditorStyles.label, _data.Dependencies.SelectMany(dd => dd.Properties.Select(p => p.Content)));

            // var t = new[] {_data.Target.Root};
            // if (_data.Target.Nested.TryGet(out var nested))

            titleContent         = new GUIContent($"{FindMode.GetWindowTitleByFindMode(_findMode)}");
            titleContent.tooltip = _data.Title;
        }