Animated image before Responce Button Template
Posted: Fri Feb 17, 2023 9:26 am
Hi Tony and everyone!
In my Dialogue UI, I would like to have an animated "selector" picture in front of the Responce Button. It would show the current option to select. But the problem is that I use Input Device Manager and the dialogue ui in my game are controlled by both mouse and keyboard. Which means the button can be highlighted, can be selected, and so on. I was thinking of using the button component, but I already use it to change the color of the text when selecting. Make animations - each button will have an animator, which (it seems to me) is not good. Maybe you can write a script that will check if the button is not in the normal state (that is, it is either selected or highlighted) - will activate the game object? Or maybe there's an even more delicate way to put a picture to the text? Maybe there's a way to link the picture and the text? Or some built-in dialogue system script that i couldnt find yet?
So, I would like to know what you would do in my situation? Thank you!
Example below
In my Dialogue UI, I would like to have an animated "selector" picture in front of the Responce Button. It would show the current option to select. But the problem is that I use Input Device Manager and the dialogue ui in my game are controlled by both mouse and keyboard. Which means the button can be highlighted, can be selected, and so on. I was thinking of using the button component, but I already use it to change the color of the text when selecting. Make animations - each button will have an animator, which (it seems to me) is not good. Maybe you can write a script that will check if the button is not in the normal state (that is, it is either selected or highlighted) - will activate the game object? Or maybe there's an even more delicate way to put a picture to the text? Maybe there's a way to link the picture and the text? Or some built-in dialogue system script that i couldnt find yet?
So, I would like to know what you would do in my situation? Thank you!
Example below