简体   繁体   中英

GUI Button click effect in unity3d

I have a button in a scene.

Can say ButtonA.

While clicking another button a popup comes.

There is a button in popup also. Say popupbutton.

While clicking on popupbutton, ButtonA works.

How can i escape from this?

在此处输入图片说明

GUI handling is especially weak in Unity3D. A solution i've been using is to write a class that handles the input in all active buttons in a scene and maintains a Queue (back to front) of them. When an input is received on a position, it sends the input event to only the top layer of the active buttons.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM