GUIText
.anchor
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
GUIText
GUIText
.anchor
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
GUIText
All Members
Variables
alignment
anchor
font
fontSize
fontStyle
lineSpacing
material
pixelOffset
tabSize
text
Inherited Variables
animation
audio
camera
collider
constantForce
enabled
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
GetScreenRect
HitTest
SendMessage
SendMessageUpwards
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
Instantiate
Instantiate.<T>
operator !=
operator ==
operator bool
var
anchor :
TextAnchor
Description
The anchor of the text.
JavaScripts
JavaScript
C#
Boo
guiText.anchor =
TextAnchor.MiddleCenter
;
using UnityEngine;
using System.Collections;
public
class
example :
MonoBehaviour
{
void
Awake
() {
guiText.anchor =
TextAnchor.MiddleCenter
;
}
}
import
UnityEngine
import
System.Collections
class
example(
MonoBehaviour
):
def
Awake
():
guiText.anchor =
TextAnchor.MiddleCenter