private void DrawDeadGUIDEntry(ComponentGUID dead) { GUILayoutOption labelOption = GUILayout.Height(20); SpiralEditor.BeginPanel(GroupType.Vertical); EditorGUILayout.SelectableLabel($"GUID: {dead.guid}", GUILayout.MinWidth(250), labelOption); string strDeadCount = strDeadObjectsCount + $" {dead.oids.Count}"; dead.showInfo = EditorGUILayout.Foldout(dead.showInfo, strDeadCount); if (dead.showInfo) { for (int i = 0; i < dead.gids.Count; i++) { var dgid = dead.gids[i]; var dgidID = dgid.fileID; string strGID = $"{dgidID}"; string strButtonName = $"#{i} MonoBehaviour ID: {strGID}"; if (EditorGUILayout.DropdownButton(new GUIContent(strButtonName), FocusType.Passive)) { dgid.showInfo = !dgid.showInfo; } if (dgid.showInfo) { SpiralEditor.BeginPanel(GroupType.Vertical); EditorGUILayout.SelectableLabel(strGID); if (SpiralEditor.Button(strSelectObject)) { Selection.objects = new Object[1] { dead.oids[i].gameObject }; } GUI.enabled = false; EditorGUILayout.TextArea(dgid.fileEntry); GUI.enabled = true; EditorGUILayout.Space(); SpiralEditor.EndPanel(); } } } if (SpiralEditor.Button(strSelectObjects)) { ObjectID.Select(dead.oids); } EditorGUILayout.EndVertical(); }
// FUNCTIONALITY -------------------------------------------------------------------------- public static void SelectDeads() { ObjectID.Select(deadOIDs); }