Version: 2017.2
public Vector3 position ;

Description

The position of the transform in world space.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { transform.position = new Vector3(0, 0, 0); print(transform.position.x); } }