I am making a gallery photo and i want to set the focus on previous selected image (which is a button to create another widget to display bigger photo)
This is a gallery blueprint, using for each loop to create a widget in a wrap box using Event pre construct.
Also in the same gallery blueprint, here is the code to select the very first image when open the gallery.
If i change the index in Get child at Event Tick, for example 3, it works. so whenever i open my gallery it always on image 4th ( 0, 1, 2 and 3)
Ok, so i want to get the index of the current selected button, i manage to get it on the image(which is a button on another widget blueprint)
when i click it, i got the index, works nicely.
The problem is here, i want to get that current index from the button and send it to the gallery blueprint, so i take the variable reference and plug in like this.
It works only on the last integer only, please help. Maybe i need to store the integer first? but i don’t know how to do it?