Unity UI - change image on mouse click

Published: 13 April 2023
on channel: Abstract Python
943
13

0:00 Adding a canvas and an image to the scene
0:35 Creating the C# script
0:42 Adding an event trigger component
1:56 Defining a public list of sprites
2:44 Defining a variable to keep track of the displayed sprite
3:49 Writing a function that replaces sprites on clicks
4:33 Connecting the function to the click event


Watch video Unity UI - change image on mouse click online without registration, duration hours minute second in high quality. This video was added by user Abstract Python 13 April 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 943 once and liked it 13 people.