GUIText.pixelOffset Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIText
GUIText.pixelOffset

var pixelOffset : Vector2

Description

The pixel offset of the text.

The text is offset from its original position by this amount.

JavaScript
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)