do you know if it also applies to families?
Yes, the family you can count as one single object so the same rules apply
I don't understand why out of the 3 Team2 sprites, the 2 to the right start as yellow.
I was trying to make you visualize that add obstacle are global
-In the first example I used the add obstacle the same as you did but I just added to the green instance that has the "boolean Active" true which is the First at the left
But as you can see that doesn't work because the last two don't turn yellow at the Run time meaning that they will have LOS
-In the second example we try the same thing but this time is working as I use the solid obstacle instead and collisions filters that's why you can archive per instance obstacle filter So:
1-If its yellow it means they have LOS to the Team1 therefore the are no obstacles on the way
2-If its not yellow it means they have No LOS to the Team1 therefore the is an obstacles on the way
Meaning that each has their own obstacles independently on the second example
oh, also the issue I am having is with casting rays, not the bool HasLineOfSight. I'll try to replicate it.
It should work the same, as if you have an obstacle it will intersect
I will recommend you test it out first in a small demo and see if it works because if you test it on your main project they may be a lot of other events of things interfering.