Physics2D.GetRayIntersectionNonAlloc

Hello,

I think the “Note that this function will allocate memory for the returned RaycastHit2D array. You can use GetRayIntersectionNonAlloc to avoid this overhead if you need to make such calls frequently.” part should be removed from this page as it would apply to Physics2D.GetRayIntersection only, not for Physics2D.GetRayIntersectionNonAlloc itself.

Thank you,

Philippe

Thanks for the report. I will correct this ASAP.

1 Like