Hi. Im trying to make a game using unity and i have a problem with buttons. I want to change button images (normal and highlighted) at runtime using c# script. How can i do that?
I mean changing these sprites with code:

Please help me
Hi. Im trying to make a game using unity and i have a problem with buttons. I want to change button images (normal and highlighted) at runtime using c# script. How can i do that?
I mean changing these sprites with code:

Please help me
You want spriteState. Unity - Scripting API: Button
Thanks