Exemplo n.º 1
0
 public override void OnGUI(Rect position)
 {
     attribute = base.attribute as HelpBoxAttribute;
     EditorGUI.HelpBox(position, attribute.text, (MessageType)attribute.messageType);
 }
Exemplo n.º 2
0
 public override float GetHeight()
 {
     attribute = base.attribute as HelpBoxAttribute;
     return(Mathf.Max(m_style.CalcSize(new GUIContent(attribute.text)).y, 40f));
 }