[Title]

Attribute used for displaying a title header above the field.

Parameters

Parameter Name
Arguments
Description

text

string

Title text to display.

DrawSeparator

bool

Draw separator?

FontSize

int

Label font size.

VerticalSpace

float

Additional vertical space between fields.

Style

string

Style of label.

Anchor

TextAnchor

Label anchor.

Examples

[Title("Settings")]
public string settings;

[Title("Advanced Options", DrawSeparator = true)]
public int advanced;

[Title("Header", FontSize = 18, Anchor = TextAnchor.MiddleCenter)]
public float header;

Last updated