Hello fellow devs.
I ran into a problem when tweening another frame to a frame controlled by a UIGridLayout.
The position of the Frame would be {0,0}, {0,0} becuase of the UIGridLayout, so it would tween to that exact position but that’s not what i’m trying to achieve.
Is there any way to get the position of the frame that is controlled by the UIGridLayout?
If so please tell, any help is welcome!
Can I see the UIGridLayout’s parent, children of this parent, all properties of the UIGridLayout and LayoutOrder of the frame “controled by a UIGridLayout” (I know what you meant here, I just want to be precise)? You might have to update LayoutOrder (or alternatively names) of all GUI object parented to the grid’s parent.
The Layout Order all are 0 of the childs as i am doing it by Name (They are all called Child for now i was planning on changing it later)
.
I am guessing it could work with AbsolutePosition though. As it isn’t needed to change the layoutorder of it i just need to get the position of the child that is under the frame controlled by the layout.
Yeah, i got it i think. I just had to get the AbsolutePosition of the Child Frame and play around with the values of it so it looked right. Thanks for the time to help me though!
If anyone is interested in the code i’ll leave it here so you won’t be stuck with the same problem.
Child.Position = UDim2.new(0,Child.Button.AbsolutePosition.X,0,Child.Button.AbsolutePosition.Y + 38)
-- The +38 is there so it would fit perfectly at the childs position (for me), just play around with it and it should work