About Menu Panel & Input

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
bloud
Posts: 10
Joined: Mon Oct 28, 2024 9:30 am

About Menu Panel & Input

Post 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 167 times
02.png
02.png (85.18 KiB) Viewed 167 times
03.png
03.png (49.79 KiB) Viewed 167 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 167 times
04.png
04.png (22.46 KiB) Viewed 167 times
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: About Menu Panel & Input

Post 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.
bloud
Posts: 10
Joined: Mon Oct 28, 2024 9:30 am

Re: About Menu Panel & Input

Post 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
Last edited by bloud on Tue Oct 29, 2024 6:00 am, edited 2 times in total.
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: About Menu Panel & Input

Post 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?
bloud
Posts: 10
Joined: Mon Oct 28, 2024 9:30 am

Re: About Menu Panel & Input

Post 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!
bloud
Posts: 10
Joined: Mon Oct 28, 2024 9:30 am

Re: About Menu Panel & Input

Post 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!
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: About Menu Panel & Input

Post by Tony Li »

Glad to help!
Post Reply