잘못된 ui세팅 버그 수정
This commit is contained in:
parent
fbff8bbe75
commit
389d0dffda
|
|
@ -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<float> ImageSet()
|
||||
{
|
||||
yield return Timing.WaitForSeconds(0.1f);
|
||||
RectTransform rt = gameObject.GetComponent<RectTransform>();
|
||||
RectTransform changeRt = gameObject.GetComponentsInChildren<RectTransform>()[1];
|
||||
float sizeSet = (rt.sizeDelta.y / 2) - 10;
|
||||
|
|
|
|||
Loading…
Reference in New Issue