finding decals that are spawned by blueprints in runtime

Hi everyone here,

two blueprints in my level are spawning decals while the game runs.
In another blueprint I try to find them with get all actors of class. ( decal actor )
It seems that get all actors of class only finds the ones that are in the level at start, but not those that are spawned in runtime.

Is this behaviour by default ? And how can I get the ones spawned in runtime ?

kind regards
stucki

get all actors should find them, doesn’t matter when they were spawned.

i’d double check your execution flow.

you could also add the actors to an array at the time they are spawned. that might be more efficient than doing a level wide search to find them later.

thx for your answer. Using the array helped me out.

1 Like