You could use LoadObject<UStaticMesh>(…) to load them at runtime instead of in the constructor.
But if you want to spawn many meshes in a row, it might be more efficient to preload all of the meshes/materials first.
You could use LoadObject<UStaticMesh>(…) to load them at runtime instead of in the constructor.
But if you want to spawn many meshes in a row, it might be more efficient to preload all of the meshes/materials first.