September 20, 2022
This attribute determines the starting position of the window in the horizontal / vertical direction and also changes the origin of the window. The origin determines where the window is placed and where it is expanded when the size changes. To understand how the alignmentformat works, try creating a
Image, and set
UDim2.new(0.5, 0, 0.5, 0)。 If you change
Size, you will find that the image will expand to the lower right corner instead of the center of the window. However, if you set the alignmentformat to
Center, the image will expand in all directions, and the center of the image is just the center of the parent window.