GUIText.pixelOffset 像素偏移

var pixelOffset : Vector2

Description描述

The pixel offset of the text.

文本的像素偏移。

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

文本通过这个值从它的原始位置偏移。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		guiText.pixelOffset = new Vector2(10, 10);
	}
}
guiText.pixelOffset = Vector2 (10, 10);
Page last updated: 2011-1-24