If it’s always going to be a subclass of an actor, why not just cast to actor class for your situation? Only actors can be “spawned” into the world.
If it’s just a UObject you are trying to create you can always run ConstructObject
If it’s always going to be a subclass of an actor, why not just cast to actor class for your situation? Only actors can be “spawned” into the world.
If it’s just a UObject you are trying to create you can always run ConstructObject