Hi all, sorry to bother you again. But I was wondering if there's a way to change a texture in a menu at runtime?
I have a HUD that will display the calendar date, weekday, and an icon of the current "weather" and I need to be able to set it either through an action or through scripting. So, I wanted to know, what would be the best approach to do this? I know I can change text in the labels with an action already, but I have no idea how I would go about changing the icon (which is just a sprite image). Currently the menu is an Unity UI menu, but I could use an AC menu if necessary, it's not a very complex HUD...
Anyways, any advice would be greatly appreciated.
Comments
GameObject canvasObject = AC.PlayerMenus.GetMenuWithName ("MyMenu").canvas.gameObject.