Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Alessaint on December 03, 2014, 05:00:04 AM

Title: Runtime custom GUI scaling
Post by: Alessaint on December 03, 2014, 05:00:04 AM
I want the player to be able to have a certain freedom over how big the GUI is so I'm trying to let him to a certain degree control its scale (by scaling UIRoot from within game options panel). This seems to works well with only exception - drag and and drop feature. As soon as any parent widget gets scaled the drag and drop starts to act funny. So I was wondering whether my way of scaling the whole gui is correct and whether this drag and drop problem is actually a bug or whether I should try adjust the script somehow to compensate for the scale.

Thanks.
Title: Re: Runtime custom GUI scaling
Post by: ArenMook on December 04, 2014, 03:42:12 AM
If you're going down that route, then set the UIRoot to be constrained, and let the users adjusts its size instead of scale. Everything should then work as expected and with the same effect.
Title: Re: Runtime custom GUI scaling
Post by: Alessaint on December 04, 2014, 04:26:25 AM
Great, thanks a lot.