I don’t understand what you want to achieve with this empty actor, but I guess you can only spawn an actor class which inherits from AActor
and is not the base class AActor
itself. Try making a new actor class using File | Add Code To Project...
in the Editor and choose AActor
as the base class. In C++ use
()->SpawnActor<AMyActor>(AMyActor::StaticClass());
from e.g. your PlayerController
or GameMode
.