Hello guys. =)
So, I'm trying a new approach in our game UI, where each "feature" in the UI is a separate prefab which gets instantiated at runtime, this way it's easier to edit them individually and enable/disable features in the UI.
However i stumbled into a problem when something needs to be anchored at the screen somehow.
since our prefabs doesn't include the Panel itself for perfomance reasons, it seems like when the prefab gets instantiated it loses all the anchor information.
I've found a way to kind of solve this, by calling on Start the function UIWidget.SetAnchor(transform.parent) and praying that the auto-anchor is good enough, this seems kinda hackish though, any better ideas on how to solve this?