How to create StaticMesh with console application?

Hi,

I am trying to develop a console application which generates few meshes and saves them as .uasset files and pack them as .Pak files.

I am trying to modify the BlankApplication (which comes as part of UE4 guthub source) to achieve the functionality. I could not understand what modules to include (the build targets stuff etc.)

Can you please give some clues?

Thanks in advance.

You definitely need to include Engine as UStaticMesh and USkeletalMesh is part of it. You can check which class is in which module on top of API reference pages:

Thanks @anonymous_user_f5a50610. I knew it but if I include Engine in the dependent modules, I am getting more and more errors.