Issue Description
When setting a GuiObject’s AnchorPoint from {0, 0}
to {0.5, 0.5}
and centering it in the screen by dragging (without manually entering {0.5, 0}, {0.5, 0}
into the Position property), the Position value is sometimes recorded as {0.5, 0}, {0.5, 0}
but other times as {0.5, 0}, {0.499, 0}
, missing one pixel.
Although this may seem like a minor issue, it creates inconsistencies when positioning UI elements, as the expected behavior should strictly set {0.5, 0}, {0.5, 0}
when perfectly centered.
Reproduction Steps
- Insert a Frame, ImageLabel, or any other GuiObject inside StarterGui.
- Change the AnchorPoint to {0.5, 0.5}.
- Drag the UI element to center it within the screen.
- Observe the Position value in the Properties window.
- Repeat the process multiple times.
Expected Behavior
The Position value should always be {0.5, 0}, {0.5, 0}
when the UI element is centered on the screen, ensuring precise alignment. However, the issue causes the Position value to sometimes be {0.5, 0}, {0.499, 0}
, introducing a one-pixel discrepancy that affects consistency. This inconsistency can be problematic when exact centering is required for UI design, as it leads to unintended misalignment.
Visual Aids: