using UnityEngine; using System.Collections; using UnityEngine.UI; public class CUI_ShowParentCoordinates : MonoBehaviour { // Use this for initialization void Start () { this.GetComponent().text = transform.parent.GetComponent().anchoredPosition.ToString(); } // Update is called once per frame void Update () { } }