This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // DO THIS in the Update method, because in Start, element does not have the correct size yet | |
| // Also this method is affected by the pivot point | |
| rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, 100.0f); |