- Home /
Issue with alignment under vertical layout group
I'm having a hard time reliably reproing this issue.
I have a hierarchy of gameobjects: Canvas > Vertical Layout group (Context Size Fitter > Row > Image.
This object is a prefab. If I align everything correctly and hit save prefab, nothing changes and the world is good. If I however disable the game object holding the layout group and hit apply to my prefab and then re-enable the layout group game object, all the children in the row game object are misaligned.
To be specific about the miss-alignment:
The childs X position becomes 100% of the parents width and the y position becomes 50% of the parents y position.
I noticed this only happens after I've created a text mesh pro component in the row object as I could never repro the issue without the text mesh pro component, but it doesn't seem to be consistent.
Has anyone else encountered a similar issue?
Your answer
