Hello all, How to create a cube in scene with Blueprint or C++?

If you just want to spawn a Cube mesh in a level then in blueprint you can do:

  1. “SpawnActorFromClass” node
  2. Assign it the Class “StaticMeshActor”
  3. Plug a make transform node into the SpawnTransform property
  4. Plug the return value into a SetMesh function of its StaticMeshComponent
  5. Set the NewMesh property to a cube mesh. Several come with the Engine content