Page 1 of 1

About Menu Panel & Input

Posted: Mon Oct 28, 2024 10:15 am
by bloud
I set up my UI panel according to the tutorial video
But the menu panel is worng, only the first button can be selected
I dont know Why
01.png
01.png (74.13 KiB) Viewed 239 times
02.png
02.png (85.18 KiB) Viewed 239 times
03.png
03.png (49.79 KiB) Viewed 239 times



And When I Use Input panel , the first time is perfect , but when i chose"change name"again,the warning appears,but it still can run
05.png
05.png (50.77 KiB) Viewed 239 times
04.png
04.png (22.46 KiB) Viewed 239 times

Re: About Menu Panel & Input

Posted: Mon Oct 28, 2024 6:40 pm
by Tony Li
Hi,

For the Lua code in the Script field, please use a straight double quote character ("), not open and close quotes (“ ”).

To debug the menu buttons, keep an Inspector view on the EventSystem GameObject. The bottom of the Inspector view will show the button that it has currently selected. When you click on the second and third menu buttons, check the bottom of the Inspector to see if it is able to select the button.

Re: About Menu Panel & Input

Posted: Tue Oct 29, 2024 5:47 am
by bloud
The Lua code is run now!Thank you!

About the button,they can be selected,but only the first button's color changed,even I chose the other button

BY the way,if I dont need alert panel, can I close it all the time?
for example :when player touch other gameobject,now the alert panel is active,but I dont want it

Re: About Menu Panel & Input

Posted: Tue Oct 29, 2024 7:38 am
by Tony Li
Hi,

It's good that you can select the other buttons. Do they respond if you click on them?

Do the other buttons have Transitions (e.g., Color Tint) on their Button components? And is Target Graphic point to the correct GameObject?

Re: About Menu Panel & Input

Posted: Tue Oct 29, 2024 8:35 am
by bloud
It's ok now!
I use ctrl+D to copy the first button,so Target Graphic all to first button,I change it now
Thank you!

Re: About Menu Panel & Input

Posted: Tue Oct 29, 2024 8:35 am
by bloud
It's ok now!
I use ctrl+D to copy the first button,so Target Graphic all to first button,I change it now
Thank you!

Re: About Menu Panel & Input

Posted: Tue Oct 29, 2024 9:03 am
by Tony Li
Glad to help!