I am using Unity UI for create menus for my game. I want to dialog box above my main menu screen.
So that I want to stop working of my main menu buttons. Only dialog box controls remain in working condition.
How to do that?
I am using Unity UI for create menus for my game. I want to dialog box above my main menu screen.
So that I want to stop working of my main menu buttons. Only dialog box controls remain in working condition.
How to do that?
You can place a UI Panel in between the main menu buttons and the dialog box. Once you click the button to show the dialog box, you can enable the panel so that it covers the main menu. Because the panel has an image script, it blocks raycasting to the buttons on the menu (as long as the panel covers the main menu buttons). Then, you can disable the panel again when you close the dialog box.
You can enable/disable the panel by using the OnClick functions of the button scripts that are already on the button.