I get the Warning “SpawnActor failed because class BP_BasicCharacter_C is abstract” when compiling my (any?) Blueprint(s).
The thing is, the Warning does not occur when playing the game, as I don’t spawn this abstract base class (only inherited ones) and I can’t find a function where I attempt to spawn the abstract class. I am confused. Where could the message come from? Of course I could simply un-abstract the class which should solve the problem, but I want to understand what causes the problem, if it could be some scripting error from my side.
Here a little example from the Output Log:
BlueprintLog: New page: Compile BP_HarrisonGameState
LogSpawn: Warning: SpawnActor failed because class BP_BasicCharacter_C is abstract
LogSpawn: Warning: SpawnActor failed because class BP_BasicCharacter_C is abstract
BlueprintLog: New page: Compile BP_PlayerController
LogSpawn: Warning: SpawnActor failed because class BP_BasicCharacter_C is abstract
LogSpawn: Warning: SpawnActor failed because class BP_BasicCharacter_C is abstract
BlueprintLog: New page: Compile BP_HarrisonHUD
LogSpawn: Warning: SpawnActor failed because class BP_BasicCharacter_C is abstract
LogSpawn: Warning: SpawnActor failed because class BP_BasicCharacter_C is abstract
Had this happening in the past. Looks like it is an internal bug of the engine. When you compile blueprints the engine actually generates a series of objects for the generated classes of the blueprints you created, hence “spawning” them (not really). If I am not mistaken every blueprint you are getting this warning on has a hard reference to the mentioned abstract base class. My advise is don’t sweat it, maybe one day they will fix it. I know its annoying as hell to get all those warnings tho, but if you are the client of your own code you might want to un abstract that base class until is fixed.
I’m not writting this as an answer because I know it does not actually solves your issue. Have a nice day.