|
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 Example() {
guiText.pixelOffset = new Vector2(10, 10);
}
}
import UnityEngine
import System.Collections
class example(MonoBehaviour):
def Example():
guiText.pixelOffset = Vector2(10, 10)