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"

100 Widgets being added to scroll box

I have two scroll boxes being populated by arrays in PawnTemplate BP. The male and the female arrays both have 10 items. I checked this by printing the length of the array. The first one, the female scroll box works perfectly. The male scroll box creates 10 widgets correctly and then goes on to repeat these 10 widgets 10 times to until there is 100 widgets in the male scrollbox.

I've tried plugging the female array into the male scrollbox and the same thing happens, the female scrollbox works and the male scrollbox repeats the items in the array 10 times. I've also tried casting instead of using a BP Interface with the same results.

Please tell me what moronic thing I've done!alt text

Product Version: Not Selected
Tags:
chickuiscreen.png (493.2 kB)
more ▼

asked Feb 11 '15 at 03:01 AM in Blueprint Scripting

avatar image

Turtlepower
11 4 5 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

By the looks of things, you have a foreach loop going inside another foreach loop. My idea for fixing this would be to drag a line from the first foreach loops "Completed" and over to the male "Get Chicken Arrays" at the top, and then break the old line that went to that "Get Chicken Arrays".

Hope you understand what I'm trying to say (still kinda new to UE4, as in I've only spent like 36'ish hours on it so far.)

Would have shown it in a blueprint but I'm not home at my desktop.

more ▼

answered Feb 11 '15 at 02:19 PM

avatar image

Tobi100000
1 1 2 2

avatar image Turtlepower Feb 11 '15 at 11:13 PM

Thank you so much! Its so obvious, but I just couldn't see it. You saved my sanity.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Each time a female chicken widget is made, all male chicken widgets are made.

There are several ways you can go about fixing this. One way is as Tobi mentioned, you make sure the females array completes before starting the male array by cutting off the connector from "Add Child" to "Get Chicken Array".

Another way is to use a Sequence node. Make 0 go into "Get Chicken Array" for females and 1 go into males.

Hope it helps! :)

more ▼

answered Feb 11 '15 at 05:30 PM

avatar image

Justin.Dooley
2.1k 104 73 163

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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