Is there any way to write C++ code inside a blueprint actor?

I’m new to c++ programming in unreal and I am having difficulties finding any documentation on this. know how to make C++ actors, Blueprint actors, and C++ functions that can be called by blueprints, but is there any way to make a C++ code that can directly interact with with a blueprint actor (like can I convert a blueprint function into a c++ function).

Of immediate relevance, I am trying to make a blueprint actor which has a procedural mesh. Now I don’t want to have to write the code to generate that procedural mesh with blueprints, but I also don’t want to have to write everything that this class needs to do in c++.

Any thoughts or suggestions would be greatly appreciated.