RedctTransform messed up after moving UI components around
I'm in the process of building UI for my game. We're not entirely sure what to aim for in regards of interactivity, sizing, etc. so that means a lot rearranging of the UI components.
However, if I have components properly setup to adjust to scale of parent etc, and then decide to move it to another panel, or put a child panel in between for easier layouting, then the component somehow keeps it's original world position, meaning I have to set up, again, it should fill the parent.
Is there a way to change unity editor to ignore the world position of gameobject, and transfer local settings of the recttransform when rearranging gameobjects into each other?
I know from script there's an overload to the method 'Transform.SetParent' which allows to ignore it. This does exactly what I want, when moving childs to other parents from script. However, I need the editor to behave that way as well.
Your answer
Follow this Question
Related Questions
Why don't I have anchors in Rect Transform or snapping guides? 0 Answers
[Solved] Setting position of rectTransform through anchor presets in code 3 Answers
Setting the position of a RectTransform 0 Answers
Rescale Meshes To Fit Within Rect 0 Answers
Why Lerping Rect Transform position, results in strange behaviour? 0 Answers