Creating a Actor from C++ class

Hi! I’m sorry that the title isn’t perfect, but I didn’t know how to frame the question in few words otherwise.
Well, to the topic:
My project is very much about “faking voxels”, and I hit a very basic problem very early on: creating the block. For optimization reasons I need an object that will be spawned by the terrain generation, and that object knows when it has to spawn the cubemesh/when to enable the physics of the cubemesh. For that I need the cube mesh, of course. What is the command for spawning a certain staticmesh asset at the origin of this empty blob? (Also if you’d like to throw in the command to use to spawn that “blob” class, that would be usefull).

Cheers!
-DoctorPC

I think the standard way of doing this would be to create an actor with an empty StaticMeshComponent. You Spawn the actor using World->SpawnActor and then when time has come, you set the StaticMesh of that actor.

yes, that is how I have pictured it, but I am looking for more exact “command templates”, with short explanation of the arguments, and example of how they are correctly formed would do a great deal at helping me toget things done faster now and in future. Thanks!

EDIT: I digged up the internet last night, and managed to find the answers. Thanks, and sorry!