Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

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); } }