Search code examples
unreal-engine4unreal-blueprintspawning

UE4: Still spawning an object, even though I set it to 'Do not spawn'


I want to add an object reference to an array in unreal blueprints, but I don't want to spawn it in the level. Is this even possible?

I tried setting the collision override to 'Do not spawn'. But it still does...

Here is the code: https://blueprintue.com/render/dvdrvdws

I expected that the actor doesn't spawn, but the actual result is that it spawns.


Solution

  • This is wrong add the weapon class in the array(turn the array type to weapon) , now only spawn what you want and when you want from this array using a different function or as you see fit .