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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

UMG cant add widget to vertical box

what am i doing wrong i seem to be doing it like ive seen people do elsewhere but it just doesnt work.

heres my viewport which is a widget called menu which has a vertical box wrapped with a border. alt text

here is the bp graph for the menu, i can add a widget normally just fine, but when i add it to the vertical box it just doesnt show...? is it a anchor thing for the button class ( which is upper left by the way) alt text

sorry if this is a total noob question...

Product Version: Not Selected
Tags:
umgstuff.jpg (298.5 kB)
bpstuff.jpg (396.9 kB)
more ▼

asked Oct 21 '14 at 04:56 AM in Blueprint Scripting

avatar image

ClaverFlav
347 29 147 200

avatar image Alanir Oct 21 '14 at 05:26 AM

Try to place something in that vertical box manually. Is it working ?

avatar image ClaverFlav Oct 21 '14 at 06:02 AM

oh im trying to spawn these list items procedurally as you pick up items in the game so i cant do it in the umg editor

avatar image Chooka Oct 21 '14 at 05:38 AM

with the 'AddChild' node are you able to drag off the 'Return Value' pin and cast to a verticl box slot then drag off that and set a 'SetHorizontalAlignment" and "SetVerticleAlingment" nodes. if you can, try setting them to 'Fill'?

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

2 answers: sort voted first

I would watch the following video: https://www.youtube.com/watch?v=6f6ejXeqyko

He does a really good job of explaining how to add items to a vertical box.

more ▼

answered Oct 21 '14 at 06:19 AM

avatar image

Hakabane
56 1 2 3

avatar image ClaverFlav Oct 21 '14 at 06:27 AM

This totally rocks thx man, wouldve never of thought of deleting the canvas panel for my listitem button.

you win ... this is the Answer. :)

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

those two settings didnt do anything, but 'Set Size' to value =1 and SizeRule to Fill totally works. tho now it has a built in padding i cant change, it just spaces them based on the number of them in the list, so 2 widgets take up 50% each of the vertical box.

it seems like they changed a lot since the experimental version a month or two ago... all the tuts ive seen dont do this cast slot thing.

thx tho Chooka. :)

more ▼

answered Oct 21 '14 at 06:20 AM

avatar image

ClaverFlav
347 29 147 200

avatar image Chooka Oct 21 '14 at 06:29 AM

another thought, in your widget do you have the button wrapped by a canvas? try it without the canvas and see what that does.

avatar image Hakabane Oct 21 '14 at 06:31 AM

That's exactly what the video I posted shows to do ^_^

avatar image Chooka Oct 21 '14 at 06:40 AM

i was meaning the "CustomButtonWidget' he was using not the widget holding the verticle box

(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