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); } }
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答