How do I spawn a component from a component?

Hi guys,

I’m having a hell of a time attempting to create a new component from within another. I have a container data component that will hold a bunch of item data components. Both inherit from ActorComponent I can spawn the item component (Add ) and add it to the container’s array variable from the player’s pawn, but I’d like to move that logic into the container component since it should ideally be managing this stuff.

However, I don’t seem to have "Add " as an option from the component. I thought that perhaps I could do it if I made a reference to the Pawn “owner” class, but I don’t seem to be able to do it from there either.

Any ideas on what I’m doing wrong/better way to do this?

I’ve attached the 2 blue print versions. As you can see, I’m trying to built a general function that will fork based on an enum and create the corresponding component, then add it to the array.

Working in actor:

Attempt to work in component:

Sorry, cant give any more detailed answer on this, would need to take a bit more of a look on how you have this setup to setup a replica on my side.
But one suggestion is to try untick the “show relevant only” on the right click menu and see if you can piece together the blueprints that way.