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"

Add an element to the top of a vertical box

I want to be able to add a new element to a vertical box at runtime and it at the top while the other elements shift downalt text

Product Version: UE 4.17
Tags:
add-to-top.jpg (73.0 kB)
more ▼

asked Dec 20 '17 at 11:33 PM in Blueprint Scripting

avatar image

Sam Carey
49 2 2 6

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

1 answer: sort voted first

Hey there, does it have to be a vertical box? You can do this easily with Grid Panel since you can control the indexes. Afaik you can't do that natively with vertical box, but you can kind of hack it. After you add a child into the vertical box you save all of the items into an array and you clear the vertical box, invert the array and readd them again. It's not pretty but it works.

more ▼

answered Dec 20 '17 at 11:44 PM

avatar image

xlar8or
6k 159 127 303

avatar image Sam Carey Dec 21 '17 at 01:17 AM

I was able to do it with the grid panel. Thanks for the help:) alt text

done.png (248.7 kB)
avatar image xlar8or Dec 21 '17 at 01:26 AM

You are welcome :)

(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