Programmer:)

[Unity] Access "Left", "Right", "Top" and "Bottom" of RectTransform via script 본문

DEV/Unity

[Unity] Access "Left", "Right", "Top" and "Bottom" of RectTransform via script

ryeggg 2022. 6. 3. 16:56
반응형

자꾸 헷갈려서 기록...

 

rectTransform.offsetMin = new Vector2(left,bottom);
rectTransform.offsetMax = new Vector2(-right,-top);

 

반응형
Comments