Unity
UI Image의 크기조정
lipnus
2018. 10. 29. 22:03
반응형
RectTransform rt = lifeBar.rectTransform;
float nowWidth = rt.rect.width;
float nowHeight = rt.rect.height;
rt.sizeDelta = new Vector2 (nowWidth, nowHeight);
반응형