I'm managing a dynamic UI based on canvas. The UI is created with Layout groups (vertical and horizontal).
One of the dynamic components of this UI is a prefab that I'm instantiating, filling with the needed information, and attaching to the parent that will dynamically place it through a vertical layout.
I can't understand why this instance is attached and rescaled to "0.683". To make it work correctly I have to scale it back to 1 from code. This behaviour since pretty strange... I'm wondering if you have suggestions to avoid the need to resize the object from code. Even if it is not such a problem I rather keep this flow clean.
Note: If I attach the same object manually from the editor, the behaviour is correct and the item is keeping a scale of 1.