- Home /
Question by
am_012 · Aug 30, 2020 at 02:11 AM ·
raycastraycastingrayhit
How to use raycast on generated objects.
I am using a for loop to generate objects. There will be 12 objects so it will go from 0th cube object to 11th cube object.
How would the scene be able to tell which object is hit. Usually to access the number you would use indices, I want to know what is the process to name out what object the ray hit without using loops to call them out.
Comment
Your answer
Follow this Question
Related Questions
how to select an object with raycasting 1 Answer
Change raycasting 1 Answer
Fall collision force with help of raycast 0 Answers
Help Playing "Sound Clip" on RayCastHit? (RayCast help?) 2 Answers