Sharing a SverticalBox between BP and c++ ?
How do i share a SVerticalBox between blueprint and c++ ?
I'd like to fill a SVerticalBox in c++.
I see two possible strategies:
I could succeed in none of those.
The following code is in the UUserWidget that the BP inherits from.
The problem is that those 4 tries give me an "unrecognized type" at compilation (TSharedPrt or SVerticalBox).
is compiling but within my function i don't know how to go from a UUserWidget to a SVerticalBox.
I tried different combinations of Casting, TSharedRef, TSharedPtr, couldn't find one that works.
Thanks for any pointers (pun almost intended^^) in the right direction !
Still no answer but a cool workaround in case anyone is stuck too.
I use the FindWidget function:
In my UMG widget i create a verticalbox named "VerticalBox_Resolutions", and in the code i add the hereabove line.
I'll mark this as solved as it works well, but if anyone has a better solution that would answer directly my initial question, please do share it :-)
answered Jan 01 '17 at 02:19 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here