From 389d0dffda443313720c4a9e8fc39ae7be513954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=ED=8C=90=EB=8F=8C?= Date: Tue, 31 Oct 2023 18:09:00 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20ui=EC=84=B8?= =?UTF-8?q?=ED=8C=85=20=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client/Assets/1_Script/ImgaeSizeSet.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Client/Assets/1_Script/ImgaeSizeSet.cs b/Client/Assets/1_Script/ImgaeSizeSet.cs index 758303f8..3e4a2935 100644 --- a/Client/Assets/1_Script/ImgaeSizeSet.cs +++ b/Client/Assets/1_Script/ImgaeSizeSet.cs @@ -1,3 +1,4 @@ +using MEC; using System.Collections; using System.Collections.Generic; using Unity.VisualScripting; @@ -9,6 +10,11 @@ public class ImgaeSizeSet : MonoBehaviour private void Start() { + Timing.RunCoroutine(ImageSet()); + } + private IEnumerator ImageSet() + { + yield return Timing.WaitForSeconds(0.1f); RectTransform rt = gameObject.GetComponent(); RectTransform changeRt = gameObject.GetComponentsInChildren()[1]; float sizeSet = (rt.sizeDelta.y / 2) - 10;