For some odd reason I have to re-apply any premade aspectratio inside a gridlayout for it to have proper effect. The effect essentially just readjusts the canvas size of the scrollingframe accurately. However this behaviour no longer seems to work unless i do something like this:
local x = v.UIGridLayout.UIAspectRatioConstraint
x.Parent = workspace
wait(.1)
x.Parent = v.UIGridLayout
Any idea why it’s not working without having to be essentially “added” without is auto loading by the game on joining?
Nope, this is also very new behaviour as this was working fine a while ago across multiple places.
edit
this doesn’t even work with the script. The scroll bar doesn’t appear. It only ever appears with the perfect canvassize if i drag the uiaspectratio to a different parent and then back to the same one with explorer. this is the only time it ever works (both in game studio and normal studio)
genuinely have no clue why this is happening as no properties have changed at all vs when it works and doesnt work. the code attempt is also after the scrollingframes has been filled with entities.
I get around this issue by reparenting in studio, just parent the GuiObject to any instance and revert the change manually (you don’t need to script this).