public Vector3 position ;

説明

ワールド空間の Transform の位置

using UnityEngine;
using System.Collections;

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