Skip to main content

Class HelpBoxDecoratorDrawer

Custom decorator drawer for HelpBoxAttribute.

[CustomPropertyDrawer(typeof(HelpBoxAttribute))]
public class HelpBoxDecoratorDrawer : DecoratorDrawer

Inheritance​

Methods​

CreatePropertyGUI()​

Draws the UI Toolkit help box in the Inspector.

public override VisualElement CreatePropertyGUI()

Returns​

VisualElement — A VisualElement representing the help box.

GetHeight()​

Specify how tall the GUI for this decorator is in pixels.

public override float GetHeight()

Returns​

float — The height in pixels.

OnGUI(Rect)​

Draws the IMGUI help box in the Inspector.

public override void OnGUI(Rect position)

Parameters​

NameTypeDescription
positionRectRectangle on the screen to use for the decorator GUI.
  • Methods
    • CreatePropertyGUI()
    • GetHeight()
    • OnGUI(Rect)