Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

TextMesh.anchor

Switch to Manual
public var anchor: TextAnchor;

Description

Which point of the text shares the position of the Transform.

	GetComponent.<TextMesh>().anchor = TextAnchor.MiddleCenter;