diff options
Diffstat (limited to 'Assets/Test/06_Layout/UI06Anchor.cs')
-rw-r--r-- | Assets/Test/06_Layout/UI06Anchor.cs | 22 |
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);
+
+ } +} |