How to use a AActor class in plugin?

Hi, I am currently working on a project that deals with creating a plugin. I would like to know how to create a c++ class extending the AActor class in the plugin. The goal is to be able to dynamically create AActor objects inside a game level using the plugin.

Any c++ code examples with explanations are highly recommended.

Thank you for the help.

There’s nothing special about using an actor in a plugin. Just make your plugin targeted as a runtime plugin and you can spawn actors just like normal game code.