Hi,
I'm trying to create a dynamic interface by instanciating prefabs I've made (sliders, checkboxes ...) and attaching them to a widget. It was working really well when no scrollview were involved, the anchors were resizing everything correctly.
But since I've parented my widget to a scrollview, I have a completely out of scale UI, like 300x bigger. Changing the transform scale in the inspector is working fine, but not by script.
If I'm doing the same thing manually in the editor, I can get everything to work fine, but it's quite screwed doing so by code, the problem is there as soon as I have to modify the parent of an instanciated prefab by code ...
Any idea how to solve this?
Thanks in advance ...