From d4e02e80388649a184bc6eb247e035102eb3c81d Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 20 Apr 2021 22:29:31 +0800 Subject: =?UTF-8?q?*=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Test/06_Layout/UI06Anchor.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Assets/Test/06_Layout/UI06Anchor.cs (limited to 'Assets/Test/06_Layout/UI06Anchor.cs') diff --git a/Assets/Test/06_Layout/UI06Anchor.cs b/Assets/Test/06_Layout/UI06Anchor.cs new file mode 100644 index 0000000..d569cf7 --- /dev/null +++ b/Assets/Test/06_Layout/UI06Anchor.cs @@ -0,0 +1,22 @@ +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); + + } +} -- cgit v1.1-26-g67d0