Version: 2021.2
public Transform transform ;

描述

附加到此 GameObject 的 Transform

using UnityEngine;

public class Example : MonoBehaviour { void Start() { gameObject.transform.Translate(1, 1, 1); } }