How to image swap on click
Im starting my very first app and am very new to unity. Basically I want to have a mirror on the screen that faces at an angle, when the player presses on the mirror it rotates 90 degrees. Obviously the player can press the mirror up to four times to complete a full circle. Anyways I have four images of the mirror (one at different 90 degree intervals) and I want it to image swap from mirror1 to mirror2 and so on when clicked. Is there an easy way to make that image swap or is there a different approach that would make more sense. Like just have a program that if the player presses the mirror the image rotates 90 degrees.
Your answer
Follow this Question
Related Questions
is there a way to detect OnMouseDown on a UI image? 2 Answers
Import Image then get all Pixels 0 Answers
Load images from resource folder instead a URL 0 Answers
Save Image state between scenes 0 Answers
Get a single texture from multiply one (from atlas) 1 Answer