TextTool

TextTool is a special Object type for creating Text labels in the scene. Once you have a reference to an Object you can call these functions like this: obj.TextTool.setFontSize().

Functions

Return ValueFunction NameDescription
ColorgetFontColor()Returns the current font color.
intgetFontSize()Returns the current font size.
stringgetValue()Returns the current text. This is the same as calling getValue() on the Object reference.
boolsetFontColor(Color)Sets the current font color.
boolsetFontSize(int font_size)Sets the current font size.
boolsetValue(string text)Sets the current text. This is the same as calling setValue() on the Object reference.