Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: omira on May 14, 2012, 10:52:19 AM

Title: Restrict window drag..
Post by: omira on May 14, 2012, 10:52:19 AM
In the example 6 (draggable window) you didn't restict the window -> i can push the window out of screen. ;D How can this fixed?

thx :)
Title: Re: Restrict window drag..
Post by: ArenMook on May 14, 2012, 12:06:17 PM
Short answer? You'll need to write your own code. The window is moved using UIDraggableObject which is a script that lets you drag anything, but it doesn't know nor care about window size.