Component.transform

public Transform transform;

Description 描述

The Transform attached to this GameObject.

using UnityEngine;

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