Version: 2023.2
public Transform transform ;

描述

附加到此 GameObjectTransform

using UnityEngine;

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