Add blueprint into component tab of another bp?

Hi.

Currently I’m trying to split my blueprint parts (health, stamina, attack system,…) which are all in the character bp into own blueprints which can be added in the component tab of the character bp. This works perfectly when you just use C++ (we already tried it out → our inventory works like that), but we would like to do the same with blueprints.

Now to the question:
Is it possible to create a blueprint out of a component class so that I can use it in the component tab of a mycharacter bp?

Thank you for your answers! :slight_smile:

Just drag&drop the blueprint you would like to insert to the graph. That should do the job :slight_smile:

That’s a way how it nearly works :slight_smile: → we need to keep everything as flexible as possible. So we also want to cast stuff from that blueprint into the mycharacter, because we also have to use the variables in the animbp.

If you pre-spawn the mycharacter, you could probably cast to it from the level blueprint fine?

Thx for the reply :slight_smile:

It could work, but we want to keep everything in those two blueprints (mycharacter + healthcomponent). Because in the level blueprint you always have to copy your stuff to every level you create.

But it would be good to know if it possible to create a blueprint out of a component class so that I can use it in the component tab of a mycharacter bp?

WHy have health component as it’s own blueprint?. And if I was you, I wouldn’t worry about flexibility too much. Is good to make sustainable code, but you shouldn’t limit yourself too much to achieve it. The darg&drop will definitely not be something you are cursing about later down the road :(unless you choose very odd road) )

ANd no, there is no way to put a blueprint in components panel of another blueprint, drag&drop is the closest alternative :confused: (I used to be struggling with this myself back in the days).

As an alternative to drag and drop you can add ChildActor to a component and select Blueprint that extends AActor. This way you can configure it in a Component view.

https://dl.dropboxusercontent/u/25801721/blueprint-child.jpg

1 Like

That’s really helpful, but I can’t set the class defaults for the child-blueprint, can I?

I know this is a really old thread, but I went hunting for the answer myself… The default values are stored under Child Actor Component->Child Actor Template when you use a blueprint in a blueprint.