Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Label

Constructs a Label with no initial text.
Read time 1 minuteLast updated 7 days ago

Definition

Label()

Constructs a Label with no initial text.
public Label()

Remarks

Use this constructor with no arguments to create an empty Label.

Label(string)

Constructs a Label displaying the specified text.
public Label(string text)

Parameters

text

The initial text to be displayed in the Label.

Remarks

Use the
text
parameter to create a Label with the specified value as the initial text.