Version: 2017.3
public Transform transform ;

描述

附加到此 GameObject 的 Transform

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { public GameObject other; void Example() { other.transform.Translate(1, 1, 1); } }