I just want to know if its possible to convert absolute position to UDim2. i’m transferring a TextButton, in a frame with UIGridLayout, to another frame and i want to keep its position. I know there’s a relation between absolute position and UDim2 but i don’t know how to solve this problem.
PROBLEM: TextButton goes from from Inventory to TempInv. The problem is UIGridLayout messes up the position when the textButton is taken out of the Inventory frame.
WHAT I WANT: I want it to look like this.
Is there a way to convert Absolute Position to UDim2?
if there is any other solution for this too, i would like to know
UDim2 contains more information than the absolute position, there are an unlimited number of combinations in a UDim2 that can create the same absolute position. However, if you just want it to have the same absolute position, just use the offset part of the UDim2.
this is the solution if anyone is looking from the future. thanks for help Azqjana
to get exact absolutePosition.X do absolutePosition.X plus half of size.X.Offset
solution: