Draggable Windows and UI for Unity

Created:

Updated:

Get it here: https://ko-fi.com/s/ac8866fdc3

A script that allows you to click any UI element and make it or it’s target follow the mouse. You could create functionality similar to microsoft windows ability to drag open windows around. You can toggle between click and hold or click and toggle with a simple public bool. You can also reset the window to the position it was grabbed from with the escape key (rebindable).

It is compatible with all canvas types automatically. including world canvas. Setup is as simple as can be. simply put the script on a UI element and you are done. Examples are provided for an example draggable window moddeled after Windows OS windows. Note the X close buttons in the images and video are not functional.