summaryrefslogtreecommitdiff
path: root/Assets/Test/06_Layout/UI06Anchor.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-04-20 22:29:31 +0800
committerchai <chaifix@163.com>2021-04-20 22:29:31 +0800
commitd4e02e80388649a184bc6eb247e035102eb3c81d (patch)
tree4cfd8d1795c4d6b4fdf941520cc087fbdfe9f7fa /Assets/Test/06_Layout/UI06Anchor.cs
parent5e7fdb87120bb1883b4358df6f3248c0fc43c917 (diff)
*布局
Diffstat (limited to 'Assets/Test/06_Layout/UI06Anchor.cs')
-rw-r--r--Assets/Test/06_Layout/UI06Anchor.cs22
1 files changed, 22 insertions, 0 deletions
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<RectTransform>();
+
+ }
+
+ // Update is called once per frame
+ void Update () {
+
+ Debug.Log(rectTransform.sizeDelta);
+
+ }
+}