Component.transform 变换

var transform : Transform

Description描述

The Transform attached to this GameObject (null if there is none attached).

Transform附加到GameObject(游戏物体)(如无附加则为空)。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public void Awake() {
		transform.Translate(1, 1, 1);
	}
}
transform.Translate(1, 1, 1);
Page last updated: 2013-7-20