[Message]

Attribute used for displaying a customizable message box above the field.

Parameters

Parameter Name
Arguments
Description

text

string

Message text to display.

Height

float

Height of the message box in pixels.

Style

MessageStyle

Icon style of the message.

FontSize

int

Font size in pixels.

FontStyle

FontStyle

Font style (normal, bold, italic).

Alignment

TextAnchor

Text alignment within the message box.

RichText

bool

Enable rich text formatting.

Examples

[Message("This is a simple message.")]
public string messageField;

[Message("<b>Bold Message</b>", RichText = true, Style = MessageStyle.Info)]
public int richTextField;

[Message("Warning!", Style = MessageStyle.Warning, FontSize = 14, FontStyle = FontStyle.Bold)]
public float warningField;

Last updated