示例#1
0
        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();
        }
示例#2
0
        static void RefreshHierarchy()
        {
            if (!StickiesEditorSettings.EnableHierarchyStickies)
            {
                return;
            }

            HierarchyObjectIdTools.Refresh();
        }