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); }
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); }