[GUI] Native toggle for Sprite Swap?
I've found similar answers here, but nothing that fits exactly what I'm trying to do here. I have 4 buttons all using a static Sprite Swap for the button texture. When clicked, I'd like the button target to change to the button pressed and stay that way. Leaving all other buttons back to their default image target, except for the button that was clicked. I haven't done any scripting for this yet, as everything was created within the GUI for unity. Any suggestions on how this can be done?
Answer by sora_jp · Mar 03, 2017 at 05:26 PM
I have written similar code for my game. When i get back on my computer in a day or so i can post the code that i use here, does that sound good?
Cheers, Oskar
Your answer
Follow this Question
Related Questions
How do I import a custom image and put it on the canvas/pause menu? 1 Answer
How to use sprite swapping with Unity's bone rigging 2DAnimation? 1 Answer
How to use Button.onClick? 1 Answer
How Do I Make my door in my game work how I want? 0 Answers
What's the name of this... ? And How to change it by script? 1 Answer