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"

Wrapping Widgets with Vertical Box inside Scroll Box doesn't work?

Does anyone know why placing widgets inside vertical boxes that are inside scoll boxes doesn't work? Placing the widgets directly in the scroll box works but once you wrap them in a vertical box it stops working. Can this not been done with Vertical Box (do I need to use something else?)

I want to be able to collapse the Vertical Box to hide a set amount of embedded Widgets.

alt text

Product Version: UE 4.21
Tags:
verticalbox.png (15.1 kB)
more ▼

asked Jan 18 '19 at 12:16 AM in Using UE4

avatar image

Regentlord
24 2 2 4

avatar image dabs863 Jan 18 '19 at 01:57 AM

can you describe more what your trying to achieve cause for me i use vertical box and then scroll box but little confused on the question itself ..thanks in advance

avatar image Regentlord Jan 18 '19 at 03:21 AM

Placing other widgets inside a Vertical Box that is inside a Scroll Box doesn't seem to work. Placing the widgets directly inside the Scroll Box works, but I want to be able to collapse groups of the widgets during gameplay. There has been a few other posts about this in the past but it has never been answered.

avatar image dabs863 Jan 18 '19 at 03:53 AM

can i see the result your getting cause off hand i think i can get it to work but are the widgets the same size or all different?

avatar image Regentlord Jan 18 '19 at 04:12 AM

There is no result, adding the Vertical Box to the Scroll Box and then adding in Widgets (all the same size) simply shows nothing when run. If I place the same widgets inside the scroll box it works fine, but then I can't collapse groups of them.

avatar image dabs863 Jan 18 '19 at 04:26 AM

alt text so i got 3 vertical boxes in the scroll box holding 4 widget is this what your trying to achieve?

untitled.png (96.8 kB)
avatar image Regentlord Jan 18 '19 at 04:37 AM

Did you do this with Blueprint or just adding it in UMG?

avatar image dabs863 Jan 18 '19 at 04:43 AM

That is added through blueprint

avatar image Regentlord Jan 18 '19 at 04:45 AM

Can you post a screenshot of it please?

avatar image dabs863 Jan 18 '19 at 05:27 AM

we got a bunch of steps to get this working but i will post the answer now with pics and a detailed response

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

1 answer: sort voted first

ok so first thing first drag a canvas panel into you hud canvas panel make sure it is marked as variable size of it dosen't matter now we make a scroll widget delete its canvas panel now drag in a size box and at the top where it says fill screen change it to desired now set the size drag a scroll box and add 3 panels to the scroll leave them blank just name them and mark them as variable now make separate widgets that are just a custom size i did 400 by 400 now lets have some fun in your character blueprint we now wanna create a function call it WIDGETS now inside create each widget and set a reference to them put that to your construction script now make a key i pick N now drag in your scroll reference and right click on it now convert to a validated get on on is valid remove from parent and set mouse input to false is not valid get the widgets function cast to wherever you have you hud get a hud reference if you have it if not go back to where you created it and set a reference now we wanna get our scroll holder the blank canvas we add to the hud we wanna add our scroll as a child to that and set auto size and tick the true panel now we wanna add each vertical box as a child to the scroll when ever you wanna collapse one just simple get a different key or what ever and remove it from parent hope this helpsalt textalt textalt textalt textalt text

hud-set-up.png (227.4 kB)
vertical.png (160.7 kB)
scrollbox.png (187.4 kB)
widget-sets.png (274.9 kB)
start-set-up.png (253.8 kB)
more ▼

answered Jan 18 '19 at 06:03 AM

avatar image

dabs863
156 1 3 6

avatar image dabs863 Jan 18 '19 at 06:04 AM

alt text alt text

middle-set-up.png (292.2 kB)
finish-set-up.png (287.8 kB)
(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