Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

Label Constructor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Label();

Description

Constructs a Label with no initial text.

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


Declaration

public Label(string text);

Parameters

text The initial text to be displayed in the Label.

Description

Constructs a Label displaying the specified text.

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