Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: TheStringSerpent on March 27, 2015, 04:23:17 PM

Title: Set size of a window in inspector?
Post by: TheStringSerpent on March 27, 2015, 04:23:17 PM
Hi everyone..

Totally new to NGUI and I need some help. I'm currently creating a main menu for my game, I have a window with all the buttons needed. When the player press the Quit-button I wan't to show a dialog... So I though, another Window is needed - but how do I resize the window to look like a dialog window? I tried to stretch the window (looked terrible)... so is there another way to do it?
Title: Re: Set size of a window in inspector?
Post by: ArenMook on March 27, 2015, 11:19:05 PM
A dialog window doesn't need to cover the entire screen. If you want to prevent events from going through it, simply give it an invisible widget that will cover the entire screen. If it has a collider on it, it will block events from going through it.

ALT+SHIFT+W, ALT+SHIFT+C