class MAGES::ComponentLibrary::RotatingLabel¶
Overview¶
A label that is placed on top of an object and rotates around the object to look at the camera. More…
class RotatingLabel: public MonoBehaviour { public: // methods void Refresh(); RotatingLabel Text(string text); RotatingLabel Font(Theme.FontData font); RotatingLabel Offset(float xz, float h); };
Detailed Documentation¶
A label that is placed on top of an object and rotates around the object to look at the camera.
Methods¶
void Refresh()
Refreshes the layout of the label.
RotatingLabel Text(string text)
Sets the text of the label.
Parameters:
text |
The new text. |
Returns:
Self.
RotatingLabel Font(Theme.FontData font)
Sets the font of the label.
Parameters:
font |
The font. |
Returns:
Self.
RotatingLabel Offset(float xz, float h)
Sets the offset of the label from the object.
Parameters:
xz |
The horizontal offset. |
h |
The height adjustment. |
Returns:
Self.