스토리지

[06.02] Rect Transform 본문

개발일지

[06.02] Rect Transform

ljw4104 2021. 6. 2. 15:09

 

Pos X 및 Pos Y => anchordPosition으로 변경할 수 있다.

변경 할 때는 new Vector2 형식으로 해야된다.

 

Width 및 Height => sizeDelta로 변경할 수 있다.

변경 할 때는 new Vector2 형식으로 해야된다.

 

var galleryRect = this.galleryPanel.GetComponent<RectTransform>();
var dialogRect = this.dialogPanel.GetComponent<RectTransform>();

galleryRect.DOAnchorPos(new Vector2(0, 0), 0.3f, true);
dialogRect.DOAnchorPos(new Vector2(-1205, 0), 0.3f, true);
Comments