Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Transform.position

Switch to Manual
public var position: Vector3;

Description

The position of the transform in world space.

    // Move the object to (0, 0, 0)
    transform.position = Vector3(0, 0, 0);

// Print the x component of the position to the Console print(transform.position.x);

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