I’ve noticed in the tutorial videos the ability to drag the edge of a RectTransform and view how it affects it’s children and when you let go of the mouse button it springs back to where it should be defined by it’s parent.
However when I try this it does not preview it just changes the size, I must be missing a key press or some other mode toggle, anyone care to share some light here?
Ah, I’ve just worked it out. It so happens that the components I was trying it on shared an edge with it’s parent so that when dragging I guess the code finds the component’s edge before the parent’s.
It appears that it is only possible to preview if you can drag the parent’s (of the currently selected item) edge without picking the selected item’s edge.
Perhaps holding a modifier key down here would be a good option. Perhaps there is one?
We can’t assign modifier keys to this, since all standard modifier keys (alt, shift, control/command) are already in use for other things. The parent preview resize is also not something we consider a crucial feature; it’s just a neat little thing that can help in understand what the anchoring does while learning to understand it.
The limitation that you can’t use it when the rect edge is aligned with the parent rect edge is of course unfortunate, but it doesn’t warrant making the feature more complicated (special non-standard modifier keys or modes) in order to work around it, I think.