Comment on page
Get a handle on window size
Meant to be added to a Unity uGUI object or similar element on a Window. This expects to be the child of a window and can be at any depth you like. Its rect is what will respond to pointer input annd manage the resize operations of the parent window.
When the user grabs and drags this componenet's RectTransform a drag delta will be calculated based on the type of handle this is. The resulting delta (difference) will be reported to the parent window and used to change the size of the window.
This does work with both the old and new Input Systems from Unity.