public Transform transform ;

Description

附加到此 GameObject 的 Transform

using UnityEngine;

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