NGUI中如何创建模式窗口(Modal Window)

来源:互联网 发布:骚男淘宝 编辑:程序博客网 时间:2024/05/11 03:48

问:

I would like to know how you would go about having a dialog pop-up and disabling all inputs from other widgets behind this dialog?

For example: Saving menu pops up a dialog “Are you sure you want to overwrite? yes no” above. The user cannot interact with anything behind this dialog until it is closed.

I was trying to mess around with having multiple cameras, ui roots, etc. I can’t seem to get anywhere without things becoming a mess. Basically I’m figuring out an elegant solution of having some sort of UI stacking system with NGUI where I can easily just push/pop a modal/non-modal window.

回答:

the popup window is in front on the Z, has its own panel, and a large collider that covers the entire screen.

原创粉丝点击