var pixelOffset : Vector2
Description
The pixel offset of the text.
The text is offset from its original position by this amount.
guiText.pixelOffset =
Vector2 (10, 10);
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
guiText.pixelOffset =
new Vector2(10, 10);
}
}
import UnityEngine
import System.Collections
class example(
MonoBehaviour):
def
Awake():
guiText.pixelOffset =
Vector2(10, 10)