I posted something about this in the unity forums as well, but I think there may be some interaction with Adventure Creator too.
I tried to make easily scalable menus as I don't know yet how many buttons I am going to need, etc. (and I wanted button layouts that scale with different aspect ratios for those buttons). I followed a tutorial on youtube for it which created its own Auto Layout script.
I noticed however that the scripts don't all take effect the first time I open the menu. Sometimes I have to open and close it once, sometimes twice, for the layout to all be good. After that, it's all fine every time I open and close the menu.
If I run the game locally and open the menu first time, the text is always small, sometimes other layout elemenst are too small too, but if I change the aspect ratio, that fixes it too.
[edit: accidentally hit "post" after previewing] Is this indeed an interaction with adventure creator that might cause it? Or is my way of setting these layouts bound to fail as is suggested in the discussion at unity?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Can you share details/screenshots about how and where you're using your custom layout script?
Other than enabling/disabling the UI, and repositioning its "RectTransform boundary", AC largely stays away from rendering. However, the "Auto-correct UI dimensions" component, which is used by the default UI prefabs, may adjust its scale based on your aspect ratio settings. Is this component present?
That the layout doesn't correct itself until it's disabled and re-enabled makes me wonder if it's a quirk of UUI. Have you tried calling ForceUpdateCanvases?