How to have long running Raycast Queries?

I think my reply on this thread ( Help Wanted - How to raycast from a system job? - Unity Forum ) is relevant here.
For multi-frame query you should be able to clone the CollisionWorld and query the clone (with caveats).

Can I ask what the use-case for running queries over multiple frame is? Is there just a lot? Are they really long over a large complex world? Either way the more common option would be to query smaller batches per frame, or break the longer ray into smaller segments, building up the results over frame rather than running the queries over frames.

2 Likes