TextMesh.offsetZ Z轴偏移

var offsetZ : float

Description描述

How far should the text be offset from the transform.position.z when drawing

在绘制时从transform.position.z文本偏移了多少。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		GetComponent<TextMesh>().offsetZ = 5;
	}
}
GetComponent(TextMesh).offsetZ = 5;
Page last updated: 2011-4-19