class MAGES::ComponentLibrary::Label¶
Overview¶
A simple label in 3D space. More…
class Label: public MonoBehaviour { public: // classes class Data; // methods Label Text(string text); Label Pivot(Vector2 pivot); Label Pivot(float x, float y); Label Font(Theme.FontData fontData); Label Padding(Vector4 padding); Label SetData(Data data); Label.Data GetData(); void Refresh(); };
Detailed Documentation¶
A simple label in 3D space.
Methods¶
Label Text(string text)
Sets the text of the label.
Parameters:
text |
The text. |
Returns:
Self.
Label Pivot(Vector2 pivot)
Sets the pivot of the underlying canvas of the label.
Parameters:
pivot |
The new pivot. |
Returns:
Self.
Label Pivot(float x, float y)
Sets the pivot of the underlying canvas of the label.
Parameters:
x |
Pivot.x. |
y |
Pivot.y. |
Returns:
Self.
Label Font(Theme.FontData fontData)
Sets the font of the label.
Parameters:
fontData |
The new font data. |
Returns:
Self.
Label Padding(Vector4 padding)
Sets the padding of the label.
Parameters:
padding |
The new padding. |
Returns:
Self.
Label SetData(Data data)
Sets the data for the label.
Parameters:
data |
The new data. |
Returns:
Self.
Label.Data GetData()
Gets the data for the label.
Returns:
The data.
void Refresh()
Refresh the layout of the label.