Page 1 of 1
Problem with markup position
Posted: Wed Sep 06, 2023 4:23 am
by 21on
Hello, I'm trying to assign an option to a specific button.
Right now I have 3 buttons (button0, button1, button2) that I set up using this guide
https://www.pixelcrushers.com/phpbb/vie ... php?t=7087
But for some reason, nothing happens when I run the scene. In this case, the second option will always be on button1 and not on button2.
What am I doing wrong?
Re: Problem with markup position
Posted: Wed Sep 06, 2023 8:07 am
by Tony Li
Hi,
On your Standard UI Menu Panel component, are the buttons assigned to the Buttons list? The [position=#] tag isn't meant to be used with buttons that are instantiated from the Button Template. To see an example that uses buttons assigned to the Buttons list, examine the Wheel dialogue UI prefab.
Re: Problem with markup position
Posted: Sat Sep 09, 2023 12:04 pm
by 21on
Yes they are assigned exactly like in the Wheel Prefab.
Re: Problem with markup position
Posted: Sat Sep 09, 2023 8:07 pm
by Tony Li
Hi,
Sorry I missed this before: Your Menu Text is set to "3". This means the response menu will use "3" for the menu button, not "[position=2]Testo...". Try changing the Menu Text to "[position=2]3" or clear the Menu Text if you want to use "Testo..." for the button.
Re: Problem with markup position
Posted: Tue Sep 12, 2023 12:06 pm
by 21on
Ah, that works! Thanks, Tony, you are awesome!
Re: Problem with markup position
Posted: Tue Sep 12, 2023 2:49 pm
by Tony Li
Glad to help!