示例#1
0
        public static bool ClickHighlight(this Object obj, string hint, icon icon = icon.Search, int width = defaultButtonSize)
        {
#if UNITY_EDITOR
            if (obj && icon.Click(hint))
            {
                EditorGUIUtility.PingObject(obj);
                return(true);
            }
#endif

            return(false);
        }
示例#2
0
        public static bool ClickHighlight(this Object obj, icon icon, int width = defaultButtonSize)
        {
#if UNITY_EDITOR
            if (obj && icon.Click(Msg.HighlightElement.GetText()))
            {
                EditorGUIUtility.PingObject(obj);
                return(true);
            }
#endif

            return(false);
        }