In unity 2d, when i click on a button i want to change the button’s sprite so it becomes pressed and when I release the button it returns to its origional state. How do I do that?
1 Answer
1Assaign a GUI skin and change the on active properties.
In unity 2d, when i click on a button i want to change the button’s sprite so it becomes pressed and when I release the button it returns to its origional state. How do I do that?
Assaign a GUI skin and change the on active properties.
It works! thanks, but how do I change the position of the button with the GUISkin?
– HyniumThen you have to go and change it with code.
– j0ffe