Image sequence/gallery

Hi everyone,

I’ve posted some questions about the same problem and I didn’t get any response… I’m really lost with this and I relly need to resolve it.

I just want to make a Image gallery which can be accesed from the main menu. I’m trying to make it with a Widget blueprint and changing the visibility of the diferent images by pressing the “next” or “previous” button.

I’ve got a kind of loop “working” on it, to change the visibility of the images each time I press the next button, but by now nothing happens whenever I hit “next” button.

Does anybody knows what I’m missing?

Yea for starter your ForEachLoops not connected(even tough nothing good will be even if they would), now can you please explain what are those planta seccion detalle and detalle 2, are they 3 pics in your gallery?
Lets say that it is so now what you have here is a sequence it fires everything it got in the order, just make branches with count.
Lets say you have a count now when you press the next button the count go up be 1, branch from “then 0” and connect equal count 1 to the boolean, from the true make the visibility to Visible, from false make it to hidden, and do the same for the other 2 pictures, but now increase the needed count to 2 and then to 3. Good luck.

Thank you DDemon!

First of all, you are right: “planta seccion”, “detalle” and “detalle2” are the pics in the gallery.

No that I have my branches set, how can I add the counter? I’m sorry for asking something that seems to be really obvious but I’m pretty new to Unreal.

Thank you in advance

Its fine counter is more to programming than unreal so its alright not to know it, make an Variable of int, set its default value to 1 (normally its set to 0 but not in this case).
When OnClicked fired add to the counter 1, then just do the sequence, and do an Equal check for the counter of 1 2 3 and 4, 3 for the pics and the last one to reset the counter back to 1 ,and connect visibility of the first pic to loop the gallery again.

Its pretty basic stuff mostly but really important, I suggest to check out tutorials for computer languages, if you want to work with variables not necessary but should be useful and more easy for you in the future.

No way… Don’t figure out how to add the counter…

It worked!!! Thank you so much! I was really frustrated with this…