How to change different images via a button

Hello everyone, I have a problem. I am working on a project with some images, with two buttons that on click I need to change the img. But I tried with the switch widget but it doesn’t work for me. Now I am using the syntax that creates widgets for me but the images all get streched. how can I solve it? thank you very much

Try:

image

image

Thank you very much now I will try.
however one question the images that need to change must be 3 in total:
0 The first one (start)
1 second screen
2 third screen.
What can I add first to make these sequences?
switch on int or something else?

By pressing the same button? Asking as you mentioned 2 buttons previously.

there are two buttons.
One that goes forward in the img and another that goes back to the previous image.

Try:

This does not cycle.

1 Like

It works!!! thank you very much
But can I also use this logic for 3D asset if I want to do something like this?

Yup. How to implement it depends on the details, though. This is often done with Event Dispatchers sending notifications to an actor who can then flip assets about.

1 Like

I would like that on the third click on the arrow, a button would appear above the last image at which click as a button, I would start the AR scan map. I put this logic but unfortunately it doesn’t work for me. Where am I going wrong?

You did not connect the node?

You’re right! but if i connect it like this, i press the button for of the first img, or the second one and it starts the game right away. i would like it to appear only at the apparition of the “start” button where am i going wrong? what can i do?

Add a Branch. Only fire that node when it’s True.

1 Like


Thank you very much I solved thanks to your advice in this way and it works! Thanks again

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.