for some reason it dose nothing in my setup. i probaly miss something but i chekt now 3 times still all the same as in the video.this is the second soution i tried. the other one was almoste the same but in the end it did no use a chnage style but some other nodes for setting an other background collor ich have set it up directly from the button so i don't need the Cast tu buttons node. but otherwise the same. i gave up for now lookng for an other soultion an other time
The way i solved the focus issure is by having an integer value bound to each button and checking which button i should be focusing now, and setting the keyboard focus, so actually this problem didn't really exist
Thanks for the great video. I have a question. Is there any way to make the mouse hover or click change color the same as the controller hover or click? Also, is it a spec that the white border on the buttons is gone?
What a shame i did it myself already 😭 This would have saved days of working on it xD ok nvm i watched the video but its pretty simple, as it should be for a tutorial ofc, but im glad i spent like extra 2 days to make hovering better and other stuff, only downside is that the code is too huge :(
If you want to achieve this, lets say u want to change the text color when hovering, you have to create a variable of type LinearColor, then you have to set the text isVariable = true, then Text->SetColorAndOpacity and you can plug in the variable there. Hope it helps
I have a problem. My UI hides the mouse and only uses the keyboard to control the buttons. It enters the interface by default. Although the keyboard is focused, it cannot respond to the Enter key for interaction. The Enter key only works after pressing the arrow keys to switch buttons. Although the mouse is hidden, after I click the mouse, the Enter key does not work again. I need to switch the button again. I don’t know how to solve it.
@@BlenderLaoJiang Go to the class you create the widget, after that you can get player controller > set show mouse cursor and set that to true. then player controller > set focus mode Ui only and plug the widget return value to the in widget . this should works
If you want to achieve this, lets say u want to change the text color when hovering, you have to create a variable of type LinearColor, then you have to set the text isVariable = true, then Text->SetColorAndOpacity and you can plug in the variable there. Hope it helps
for some reason it dose nothing in my setup. i probaly miss something but i chekt now 3 times still all the same as in the video.this is the second soution i tried. the other one was almoste the same but in the end it did no use a chnage style but some other nodes for setting an other background collor
ich have set it up directly from the button so i don't need the Cast tu buttons node. but otherwise the same. i gave up for now lookng for an other soultion an other time
The way i solved the focus issure is by having an integer value bound to each button and checking which button i should be focusing now, and setting the keyboard focus, so actually this problem didn't really exist
A good solution!
Thanks for the great video.
I have a question.
Is there any way to make the mouse hover or click change color the same as the controller hover or click?
Also, is it a spec that the white border on the buttons is gone?
What a shame i did it myself already 😭
This would have saved days of working on it xD
ok nvm i watched the video but its pretty simple, as it should be for a tutorial ofc, but im glad i spent like extra 2 days to make hovering better and other stuff, only downside is that the code is too huge :(
Yep, working with complex UI can be quite a mess! learning by yourself will definitely also improve your problem-solving skills, don't worry!
Thanks for the tutorial, but I have a question. Instead of changing the button style, how can I make it so I can change the text style/color?
You can create a variable as I did in the video. Instead of button style, I believe its called Text Style. you can play around with the value there 😁
was yo able to figre it out? if so can yo let me know as i'm interested in same thing
If you want to achieve this, lets say u want to change the text color when hovering, you have to create a variable of type LinearColor, then you have to set the text isVariable = true, then Text->SetColorAndOpacity and you can plug in the variable there. Hope it helps
I have a problem. My UI hides the mouse and only uses the keyboard to control the buttons. It enters the interface by default. Although the keyboard is focused, it cannot respond to the Enter key for interaction. The Enter key only works after pressing the arrow keys to switch buttons. Although the mouse is hidden, after I click the mouse, the Enter key does not work again. I need to switch the button again. I don’t know how to solve it.
@@BlenderLaoJiang Go to the class you create the widget, after that you can get player controller > set show mouse cursor and set that to true. then player controller > set focus mode Ui only and plug the widget return value to the in widget . this should works
Ok, default on clicked gamepad button x. And i want change to button triangle. How to make it?
I guess you have to handle it manually via a On Pressed Key Down override function
when I use my gamepad I can't see which Ui I'm on how can I fix it?
🔥🔥🔥
can yo show how to do it with text rather than button?
If you want to achieve this, lets say u want to change the text color when hovering, you have to create a variable of type LinearColor, then you have to set the text isVariable = true, then Text->SetColorAndOpacity and you can plug in the variable there. Hope it helps