Assert fails on EndPlay after an Actor was Spawned

Hi

Despite all my efforts I fail to figure out how to fix this.
After using SpawnActor (in cpp or in blueprint), if I stop the game, this check fails:

image

Ths actor is properly spawned with the correct class, I can see it in the level.
What am I missing here?

Here is the callstack:

And the code that spawns the actor:

The issue was on the actor itself. It was creating a component and incorrectly calling the “AddToRoot” function on it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.