I have 5 buttons in a scene, among which, I want the first button to be shown as selected by default, so the button’s image should be the same as “Pressed Sprite” instead of default source image. How can I do it?
1 Answer
1Look in the Event System for your scene in the inspector there should be a First Selected (or something like that - not got access to Unity ATM) just drag your first button onto the slot.
It worked, so easy! Thanks! I still have a following question. I have two sets of navigation buttons, each has 5 buttons which are on 2 separate canvases. When I switch from the first set to the second, I want to hid the first group on the first canvas and show the second group on the second canvas. After the first canvas is hidden and the second is shown, can I reset the "First Selected" to one button on the second group of navigation button?
– tammyhuangThat's alright but you appear to have unaccepted the answer, it's not that important but it does help others looking for the same answer :)
– Mmmpies