No values in object created in Blueprint Graph view

I am trying to create some UI objects dynamically in Blueprint rather than in the design view.

If I create a Scale Box in the Design view, I get values such as the following:

But if I create a Scale Box object in the Graph view, I only get the following values, none of which are any use to me.

What am I doing/getting wrong? Why are the objects different?

youll need to have the object as a variable in event graph, and then from it you can access the public parameters to set through blueprint.

image

if you wanted to have some premade widgets that you just toggle on/off you can make them as separate widgets and add dynamically to another widget blueprint. This way you can design them in design view but still only load them when needed. You might want to read about “Named slot” a bit for that, comes in handy.

2 Likes

Thanks BIGTIMEMASTER!

So I take it that it’s not possible to truly create widgets dynamically from scratch, at least not in Blueprint (maybe in C++)?

Not sure what you mean exactly. You can use create widget node and create base classes of widgets (like button, horizontal box, etc) and then set all the parameters in blueprint.

it’s just, that sounds like pure hell to me. Usually I think you’d prefer to use the designer to make them, and just set parameter values through code.