How to access Blueprint created ActorComponent with C++

My team mate works with pure blueprints, while I work mostly with C++ and am not very familiar with blueprints. Im trying to access an ActorComponent on one of the actors, but Im not sure how to find the C++ class equivalent of the ActorComponent.

The C++ version of the ActorComponent is UActorComponent.

However, what I think you might be asking is how to get a blueprint-derived child of ActorComponent. Which is a far more difficult problem to solve with no real documentation. You’re better off moving that class to C++ (or some base form of it)

You can use LoadClass function and give it path of that BP and create object on runtime

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms