How do I reference/call a component from my pawn?

Hi! I wanted to know how do I get a reference to a component used by my blueprint actor (in my c++ class that is the parent class of said blueprint actor), my actor of course is composed by a few components that are parents to other components I need to reference a specific component which is a StaticMesh, so I can call it in the code and make it move individually.

I’m a total beginner.

I think you need to add the component in C++ to be able to access it in C++. If it is a generic component you may be able to use GetComponentByClass.

1 Like

You mean like, create it in the actual c++ class for the blueprint actor to use it, right?

Yes.