Question by
gameingking1996 · Sep 15, 2021 at 10:00 PM ·
raycastraycasthitray
Raycast hit not working when GameObject is changed
hello I am running into a problem where the raycast hit does not update when I delete a object and spawn a new object where the last one was when I move the object away and back where it was it works again. does anyone know how to fix this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613043051im_/https://answers.unity.com/themes/thub/images/avi.jpg)