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

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