I’m currently stuck trying to cycle images. I’m attempting to get so every time I press the mouse button it moves to the next “image”. I tried doing…
function OnMouseDown(){
if (Input.GetMouseButtonDown(1));
guiTexture.texture = form2;
if (Input.GetMouseButtonDown(2));
guiTexture.texture = form3;
}
but it didn’t really seem to work… It’ll work when it’s one but not two. I’ve tried a few different things and read plenty of posts but I couldn’t seem to find anything that worked for what I’m aiming to do.
A example…
picture 1, picture 2, picture 3
mouse click 1 (loads picture 1), mouse click 2 (loads picture 2), mouse click 3 (loads picture 3), mouse click 4 (loads picture 1) and keeps letting you cycle.
Thanks in advance.