GameObject.transform

Switch to Manual
public Transform transform;

Description

The Transform attached to the GameObject (Read Only).

Every GameObject has a Transform component attached to it on creation, which cannot be removed.

using UnityEngine;

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

Did you find this page useful? Please give it a rating: