Version: 5.6
public Vector3 position ;

설명

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