public static void OnGUI(Rect position, InfoboxAttribute attrib) { EditorGUI.HelpBox(position, attrib.Message, (MessageType)attrib.MessageType); }
public static float GetHeight(InfoboxAttribute attrib) { GUIStyle style = GUI.skin.GetStyle("HelpBox"); return Mathf.Max(40f, style.CalcHeight(new GUIContent(attrib.Message), EditorGUIUtility.currentViewWidth)); }