x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

alt text

Does anybody knows what I'm missing?

Product Version: UE 4.12
Tags:
widget1.png (223.2 kB)
more ▼

asked Jul 07 '16 at 03:42 AM in Blueprint Scripting

avatar image

cgmpalencia
5 4 6 10

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

No way... Don't figure out how to add the counter...

more ▼

answered Jul 08 '16 at 01:19 AM

avatar image

cgmpalencia
5 4 6 10

avatar image DDemon Jul 08 '16 at 07:45 AM

alt text

asd.png (4.7 MB)
avatar image cgmpalencia Jul 08 '16 at 12:14 PM

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

(comments are locked)
10|2000 characters needed characters left

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.

more ▼

answered Jul 07 '16 at 08:06 AM

avatar image

DDemon
473 21 10 25

avatar image cgmpalencia Jul 07 '16 at 11:09 AM

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.

alt text

Thank you in advance

counter.png (189.5 kB)
avatar image DDemon Jul 07 '16 at 12:28 PM

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.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question