Hallo again, feels like I have posted here 1 million times lately!
I am looking for some help with coding one of my hud elements. I have a little button, and when my player hits a key, I want the image to appear as if it’s highlighted, kind of like shortcuts do on other computer games. I figure the best way to do this is have a second image texture that is the highlight be displayed for just a second when they press the button.
I know I could have a second model of the button and just replace mesh with this new texture on it, but that seems inefficient when thinking of multiple buttons and other objects with changing textures like player clothings.
Can anybody explain to me the way to python code it so that I can change/add/remove textures and/or materials from an object in the run-time? Maybe some kind of quick sample code to help me understand how to do it?
I would ideally like to do it internally, but if it’s only possible externally, then so be it.