Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Feedbacks.MMFInformationAttributeDrawer Class Reference

This class allows the display of a message box (warning, info, error...) next to a property (before or after) More...

Inheritance diagram for MoreMountains.Feedbacks.MMFInformationAttributeDrawer:

Public Member Functions

override void OnGUI (Rect rect, SerializedProperty prop, GUIContent label)
 OnGUI, displays the property and the textbox in the specified order More...
 
override float GetPropertyHeight (SerializedProperty property, GUIContent label)
 Returns the complete height of the whole block (property + help text) More...
 

Protected Member Functions

virtual bool HelpEnabled ()
 Checks the editor prefs to see if help is enabled or not More...
 
virtual float DetermineTextboxHeight (string message)
 Determines the height of the textbox. More...
 

Detailed Description

This class allows the display of a message box (warning, info, error...) next to a property (before or after)

Member Function Documentation

◆ DetermineTextboxHeight()

virtual float MoreMountains.Feedbacks.MMFInformationAttributeDrawer.DetermineTextboxHeight ( string  message)
protectedvirtual

Determines the height of the textbox.

Returns
The textbox height.
Parameters
messageMessage.

◆ GetPropertyHeight()

override float MoreMountains.Feedbacks.MMFInformationAttributeDrawer.GetPropertyHeight ( SerializedProperty  property,
GUIContent  label 
)

Returns the complete height of the whole block (property + help text)

Returns
The block height.
Parameters
propertyProperty.
labelLabel.

◆ HelpEnabled()

virtual bool MoreMountains.Feedbacks.MMFInformationAttributeDrawer.HelpEnabled ( )
protectedvirtual

Checks the editor prefs to see if help is enabled or not

Returns
true, if enabled was helped, false otherwise.

◆ OnGUI()

override void MoreMountains.Feedbacks.MMFInformationAttributeDrawer.OnGUI ( Rect  rect,
SerializedProperty  prop,
GUIContent  label 
)

OnGUI, displays the property and the textbox in the specified order

Parameters
rectRect.
propProperty.
labelLabel.

The documentation for this class was generated from the following file: