GameObject.transform 变换

var transform : Transform

Description描述

The Transform attached to this GameObject. (null if there is none attached)
附属于这个游戏物体上的变换。(如果没有则为空)

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	public GameObject other;
	public void Awake() {
		other.transform.Translate(1, 1, 1);
	}
}
var other : GameObject;
other.transform.Translate(1,1,1);
Page last updated: 2010-12-13