Get object's distances on Raycast

3800-gaaaaaaaa.png

As picture, How to get all object’s distances on raycast??

You need to use RaycastAll which returns all of the hits for the ray that is cast.