summaryrefslogtreecommitdiff
path: root/Assets/Test/06_Layout/UI06Anchor.cs
blob: d569cf76f290d8efabb27ced740c154652ca8b11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UI06Anchor : MonoBehaviour {

    RectTransform rectTransform;


    // Use this for initialization
    void Start () {
        rectTransform = GetComponent<RectTransform>();

    }
	
	// Update is called once per frame
	void Update () {

        Debug.Log(rectTransform.sizeDelta);

    }
}