Skip to content

API > TextMesh


TextMesh⚓︎

TextMesh inherits from Component

A script interface for the text mesh component.

Members⚓︎

Properties⚓︎

Name Description
TextMesh.alignmentProperty How lines of text are aligned (Left, Right, Center).
TextMesh.anchorProperty Which point of the text shares the position of the Transform.
TextMesh.characterSizeProperty The size of each character (This scales the whole text).
TextMesh.colorProperty The color used to render the text.
TextMesh.fontSizeProperty The font size to use (for dynamic fonts).
TextMesh.fontStyleProperty The font style to use (for dynamic fonts).
TextMesh.lineSpacingProperty How much space will be in-between lines of text.
TextMesh.offsetZProperty How far should the text be offset from the transform.position.z when drawing.
TextMesh.richTextProperty Enable HTML-style tags for Text Formatting Markup.
TextMesh.tabSizeProperty How much space will be inserted for a tab '\t' character. This is a multiplum of the 'spacebar' character offset.
TextMesh.textProperty The text that is displayed.

Inherited Members⚓︎

Inherited Properties⚓︎

Name Description
TextMesh.gameObjectPropertyReadonly Property The game object this component is attached to. A component is always attached to a game object.
TextMesh.tagPropertyReadonly Property The tag of this game object.
TextMesh.transformPropertyReadonly Property The Transform attached to this GameObject.
TextMesh.hideFlagsProperty Should the object be hidden, saved with the Scene or modifiable by the user?
TextMesh.nameProperty The name of the object.

Inherited Methods⚓︎

Name Description
TextMesh.BroadcastMessage(methodName, parameter=nil)Method Calls the method named methodName on every Lua Script in this game object or any of its children.
TextMesh.CompareTag(tag)Method Is this game object tagged with tag ?
TextMesh.GetAllLuaScripts()Method Returns an array of all Lua scripts that attached to the game object.
TextMesh.GetComponent(type)Method Returns the component of Type type if the game object has one attached, nil if it doesn't.
TextMesh.GetComponentInChildren(t)Method Returns the component of Type type in the GameObject or any of its children using depth first search.
TextMesh.GetComponentInParent(t)Method Returns the component of Type type in the GameObject or any of its parents.
TextMesh.GetComponents(type)Method Returns all components of Type type in the GameObject.
TextMesh.GetComponentsInChildren(t)Method Returns all components of Type type in the GameObject or any of its children.
TextMesh.GetComponentsInParent(t)Method Returns all components of Type type in the GameObject or any of its parents.
TextMesh.SendMessage(methodName, value=nil)Method Calls the method named methodName on every Lua Script in this game object.
TextMesh.SendMessageUpwards(methodName, value=nil)Method Calls the method named methodName on every LuaScript in this game object and on every ancestor of the behaviour.
TextMesh.TryGetComponent(type)Method Gets the component of the specified type, if it exists.
TextMesh.GetInstanceID()Method Returns the instance id of the object.