Set Visibility with For Each Loop from Actors with Tag

Hello Everyone,

I’m two weeks new on UE4. After hours of research, i finally post here, even if deep inside i’m sure i miss something obvious.

The goal is : When my player enter a volume, meshes with certain Tag become invisible, and when he gets out it become visible again.

I used to make it worked, but i have random issues, seems like For Each Loop doesnt really finish his job before the rest of tasks.

I’m not exactly sure about how For Each loop works, even for visibility meshes and parents/children effects ( did a lot tries puting my tag on Bp, Root or Meshes).

Last time it worked only with one mesh, guess the for each loop only take one mesh from an array ?

Hope i’m clear, thanks in advance for your help.

You need to hook up loops properly, something along the lines of:

Atm, you’re not really looping through anything since Loop Body is disconnected.

Thank you for your answer. I was hopping that i could use For Each Loop only to get all meshes from my array, without calling another fonction. But i get it.

My first try was mostly to reduce the amount of For Each Loop in my level BP ( i have read those fonctions was a bit Heavy to load ), so i wanted to have only one for the begin, and end overlap.

Thank you for taking the time to answer me.