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.
asked Jan 18 '19 at 12:16 AM in Using UE4
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 helps
answered Jan 18 '19 at 06:03 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here