A downloadable project

Buy Now$10.00 USD or more

Draggable UI Windows with Screen Constraints

🎯 What is this?

A lightweight, drag-and-drop solution for making your UI windows draggable while keeping them perfectly within screen boundaries. 

✨ Features

  • Smooth Dragging: Click and drag any UI element by its handle (title bar, header, etc.)
  • Auto Screen Clamping: Windows automatically stay within screen boundaries.
  • Bring to Front: Clicked windows automatically come to the front, just like professional desktop applications
  • Easy Toggle: Enable/disable screen constraints with a single checkbox
  • Zero Dependencies: Works with Unity's built-in UI system (no external packages required)
  • Performance Optimized: Lightweight script with minimal overhead

🚀 How to Use

  1. Attach the script to your window's drag handle (like a title bar)
  2. Set the parent - The script automatically detects the parent transform to move
  3. Done! Your window is now draggable and screen-constrained
Published 17 days ago
StatusReleased
CategoryOther
AuthorKaTO

Purchase

Buy Now$10.00 USD or more

In order to download this project you must purchase it at or above the minimum price of $10 USD. You will get access to the following files:

DraggableUI.cs 2.8 kB

Leave a comment

Log in with itch.io to leave a comment.