Generate new Blueprint on click

Hi,

i’m creating a game where I want the users to be able to add new assets to the game.
So basically, imagine if you had three main types of units and you wanted the user to be able to add new units in accordance to one of those three.

It can be assumed that exists a base class for each of the types of units possible.

I know how I would do the interface to add new units but I don’t know how to generate new persistent assets mid-game.

So that’s my question: is it possible to create assets via blueprints or c++ code dynamically?

Thanks for the help.

You can save/load these as part of a gamesave from BP, but you can’t save them to the map as part of a cooked game (to my knowledge).

C++ can store these in more interesting/efficient ways however.

When I say mid-game is like you go on the menu to create units, create some and then when you go in the scenario editor (as i’m talking about a RTS) the newly created units are already displayed there.

Can I use the info displayed on this url? https://docs.unrealengine.com/latest/INT/Programming/Assets/AsyncLoading/index.html

From what you’ve said you do not need to make a new Blueprint to do what you want. On the menu just collect the settings the user picks and then when the Units are spawned initialize them with that data.

Ok thank you for your help