static void AddRevealerIconHieararchy(int instanceID, Rect selectionRect) { if (!StickiesEditorSettings.EnableHierarchyStickies) { return; } var obj = EditorUtility.InstanceIDToObject(instanceID); if (obj == null) { return; } long id = HierarchyObjectIdTools.GetIdForHierarchyObject(instanceID); if (id == 0) { return; } AddRevealerIcon(id.ToString(), selectionRect, ViewType.Hierarchy); // EditorApplication.RepaintHierarchyWindow(); }
static void RefreshHierarchy() { if (!StickiesEditorSettings.EnableHierarchyStickies) { return; } HierarchyObjectIdTools.Refresh(); }