Answers for "how to know on which a gameobject is RaycastHit located"

C#
0

how to know on which a gameobject is RaycastHit located

if (Physics.Raycast(cam.ScreenPointToRay(...), hit){
   Destroy(hit.transform.gameObject);
 }
Posted by: Guest on February-08-2021

Code answers related to "how to know on which a gameobject is RaycastHit located"

C# Answers by Framework

Browse Popular Code Answers by Language