Spawning Actor From Class with an Array is failing?
I am able to spawn any actor class I wish within this BluePrint if I simply click the purple Class dropdown and select an actor within the Spawn Actor from Class node.
Yet... if I add a basic "Get All Actors with Tag" to this BluePrint with said Actors being properly tagged - I am unable to spawn ANYTHING. Perhaps someone could see what I am doing wrong?
Thank you for your time.
asked Nov 29 '17 at 12:02 AM in Blueprint Scripting
My guess is that you are fetching all 'current' actors with that tag. If you don't have any actors in that world with your tag, the array would return nothing.
What I would do is, do a ForEach loop on the returned array (get all actors with tag array) and pull the peg off and print the display name. This would show if you had any objects being returned for each tag you select.
Edit: Forgot to mention, if the array is returning nothing, try to drag that actor into the world and see if it's able to pull the reference.
Follow this question
Once you sign in you will be able to subscribe for any updates here