Asynchronous Raycast doesn't return the same results as RaycastAll/RaycastNonAlloc

Hi,

I’m starting to port to multithreading some stuff in our game and I needed to do asynchronous multithreading. I’m using RaycastCommand and, at least sometimes, I don’t get all the results of the raycast as we do with a RaycastAll, but only the first one. I’m wondering if that’s the intended behaviour or not. We are passing a results array with 4 times the size of the command and we’re passing 4 in the command as the number of hits.

I’d appreciate any help with this.

Best regards,
Eduardo

1 Like

I’m still having the same problem please tell me if you got the solution