/// <summary> /// リンクビュー /// </summary> private void LinkView() { if (0 < Selection.objects.Length) { var sortedObjects = Selection.objects.Select(x => new{ obj = x, sortValue = GetSortStringInLinkView(x) }).ToList(); sortedObjects.Sort((x, y) => { return(string.Compare(x.sortValue, y.sortValue)); }); using (var scrollView = new EditorGUILayout.ScrollViewScope(linkViewStates[(int)analyzeMode].scrollPosition)) { foreach (var sortedObject in sortedObjects) { linkViewStates[(int)analyzeMode].scrollPosition = scrollView.scrollPosition; var uniqueID = LinkAnalyzer.ConvertObjectToUniqueID(sortedObject.obj); LinkView(uniqueID, string.Empty); } } } }