using System.Collections; using System.Collections.Generic; using UnityEngine; public class UI06Anchor : MonoBehaviour { RectTransform rectTransform; // Use this for initialization void Start () { rectTransform = GetComponent(); } // Update is called once per frame void Update () { Debug.Log(rectTransform.sizeDelta); } }