What is the appropriate way to add a data component to a pawn?

This is my first attempt at prototyping in UE4 after quite a few years on Unity, so I’m sure this is probably a simple question. I am interested in creating a data object that I can attach to my pawn that represents an interchangeable object, like a sword or armor. What is the appropriate way to do this?

Can I create a data class/object/component like that in Blueprints? How do I attach it? And how do I initialize it?

Any help would be appreciated!

I’m pretty sure you’re meaning actor component or scene component. If you want your component to have a transform, use scene component, otherwise actor component. Create blueprint class → scene/actor component.

Then you can build logic inside there and just drag the blueprint to the parent blueprint components panel.
Cheers! :slight_smile:

Not sure, actually :stuck_out_tongue:

That seems appropriate :slight_smile: Can you make actor components that inherit from other actor components? I assume so, but just curious. This answers my broad question though. :slight_smile: