TextMesh
.anchor
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
TextMesh
TextMesh
.anchor
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
TextMesh
All Members
Variables
alignment
anchor
characterSize
font
fontSize
fontStyle
lineSpacing
offsetZ
tabSize
text
Inherited Variables
animation
audio
camera
collider
constantForce
gameObject
guiText
guiTexture
hideFlags
hingeJoint
light
name
networkView
particleEmitter
renderer
rigidbody
tag
transform
Inherited Functions
BroadcastMessage
CompareTag
GetComponent
GetComponent.<T>
GetComponentInChildren
GetComponentInChildren.<T>
GetComponents
GetComponents.<T>
GetComponentsInChildren
GetComponentsInChildren.<T>
GetInstanceID
SendMessage
SendMessageUpwards
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
Instantiate.<T>
operator !=
operator ==
operator bool
var
anchor :
TextAnchor
Description
Which point of the text shares the position of the Transform
JavaScripts
JavaScript
C#
Boo
GetComponent(TextMesh).anchor =
TextAnchor.MiddleCenter
;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
GetComponent<TextMesh>().anchor =
TextAnchor.MiddleCenter
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
GetComponent[of TextMesh]().anchor =
TextAnchor.MiddleCenter