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"

Reverse order of scrollbox widget?

Hey all, I am working on a project and have got myself stumped. I have made a UI Widget that notifies the player when they've obtained an item, and they way I've handled that is by adding children to a scrollbox widget. However, currently the notifications start at the top of the scrollbox and any more that are added are placed underneath it. I would like to figure out how it is possible to have the first child start at the bottom of the screen, then additional children being added above it. I may have approached it all wrong so I am fine with starting it from scratch, I just cant seem to figure out how to achieve this.

Here's a video example of what I am trying to achieve, pay attention to the bottom right corner of the screen:

Video Example

Here's a picture and a video of my current setup:

Photo of BP setup responsible for adding widget

Video of setup in action

Product Version: UE 4.14
more ▼

asked Oct 21 '17 at 05:40 PM in Blueprint Scripting

avatar image

3 1 2 3

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

1 answer: sort voted first

This is a piece of functionality that has been missing from UMG. I'm going to shamelessly quote myself from the forums here:

Unfortunately, you cannot directly manipulate the child order in a widget container. You have 2 options here:

  1. Create a temporary array and order insert/add/remove widgets there. Use that array to add widget children to a container. (you will need to clear the container first, and either redraw all widgets or just the ones whose order have been affected - some fiddling with the indexes will be necessary here)

  2. Flip the container upside down (render transform --> angle 180), do the same for every child that you add

Use #1 if you need to add (insert) a widget at a specific index, use #2 if you need a simple inverted list.

Hope it helps.

more ▼

answered Oct 21 '17 at 06:24 PM

avatar image

12.1k 71 24 49

avatar image JasonChoate Oct 26 '17 at 01:20 AM

Thanks! Got it to work using a combination of your two suggestions.

avatar image krishcrush_ Jan 05 '19 at 04:24 PM

Thank you :)

avatar image Kinord Jan 11 '19 at 01:09 PM

The second variant sounds like a great hack ;) I'll try it in my own project, thanks!

(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