Is there a way to add struct Variable from Blueprint?

Hello Everyone,
My question, Is there a way to create new variable inside a struct from blueprint?

Thanks for answer’s in advance.
<3

For example:

  • Getting the created struct.
  • Create new variable.
  • Add new variable to Struct.
  • Save it to the struct

I want to create this during gameplay from blueprint.

It sounds like you’re wanting to change the definition of a struct at run-time, which cant directly be done.

A better approach would be to define an array, map, or some other collection in the struct definition, that way you can simply add and remove elements at runtime without changing the definition of your struct.

1 Like

I think I understood your suggestion I`ll try something like that and let you know if its working for me.
Thanks for your reply.

Here’s some screenshots to show how you can define a structure bp, and use it in an actor BP to add new entries to a map of floats, strings, or whatever else you need.

Thanks. Ive figured something else if it will not work well for me ill try with struct like you have shown in the image above.