Download

Compiling blueprint spawns extra child actor

I have a pawn in my world that has a child actor attached to it, as can be seen in screenshot 1.

My problem is that whenever I compile my blueprints (the weapon, or it’s projectile), UE4 hangs for a second and then creates a copy of the child actor in the world for each pawn I have in the world. The following screenshot shows that I have 2 pawns, so when I compile a blueprint it creates 2 copies of the child actors in the world. Please refer to screenshot 2.

It’s not that annoying, but if I forget about it for a while when working, I can easily have a hundred extra actors that I have to delete because they keep spawning and I don’t know what is causing it. Please refer to screenshot 3.

Any help will be much appreciated!