Is the array GetRayIntersectionAll returns not sorted?
I’m getting to this conclusion after several tests with 2d layers and orderings.
My tests show that visual order doesn’t always reflect the order GetRayIntersectionAll returns.
So, the question is, I should expect the returning array not to be sorted, right?
Just to resolve this.
GetRayIntersectionAll sorts hits by Z but it doesn’t respect other render order parameters nor it knows about them.
If you need to, you should sort return values as you like.