Skip to main content

TextMesh

info

TextMesh inherits from Component

A script interface for the text mesh component.

Members

Properties

NameDescription
TextMesh.alignmentHow lines of text are aligned (Left, Right, Center).
TextMesh.anchorWhich point of the text shares the position of the Transform.
TextMesh.characterSizeThe size of each character (This scales the whole text).
TextMesh.colorThe color used to render the text.
TextMesh.fontSizeThe font size to use (for dynamic fonts).
TextMesh.fontStyleThe font style to use (for dynamic fonts).
TextMesh.lineSpacingHow much space will be in-between lines of text.
TextMesh.offsetZHow far should the text be offset from the transform.position.z when drawing.
TextMesh.richTextEnable HTML-style tags for Text Formatting Markup.
TextMesh.tabSizeHow much space will be inserted for a tab '\t' character. This is a multiplum of the 'spacebar' character offset.
TextMesh.textThe text that is displayed.

Inherited Members

Inherited Properties

NameDescription
TextMesh.gameObjectThe game object this component is attached to. A component is always attached to a game object.
TextMesh.tagThe tag of this game object.
TextMesh.transformThe Transform attached to this GameObject.
TextMesh.hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
TextMesh.nameThe name of the object.

Inherited Methods

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