[HorizontalLine]

Attribute used for displaying a horizontal line separator above the field.

Parameters

Parameter Name
Arguments
Description

width

float

Line thickness in pixels.

r

float

Red component (0-1).

g

float

Green component (0-1).

b

float

Blue component (0-1).

a

float

Alpha component (0-1).

Space

float

Spacing above and below the line in pixels.

Examples

[HorizontalLine]
public string defaultLine;

[HorizontalLine(2.0f)]
public int thickLine;

[HorizontalLine(1.0f, 1.0f, 0.0f, 0.0f, 1.0f)]
public float redLine;

[HorizontalLine(Space = 10)]
public GameObject spacedLine;

Last updated