- Home /
Physics Raycast work fine but don't work after build game.
I have a very very very very annoying issue on my Unity 5.6.3p1, And I don't know how to fix it!! Please help!!
I use Physics.Raycast to detect GameObject in the scene, It work perfectly in Editor, but after I build the game, It seem to be doesn't work anymore, even in Editor. (both of x86 & x64) if (Physics.Raycast(Ray, out hit))
will be return false
forever after that but I don't know why.
Something weird here is, If I double click my scene.unity and load scene in Editor, Physics.Raycast will work again normally, everything work perfectly without any issue.
Can somebody help me?
Your answer
![](https://koobas.hobune.stream/wayback/20220612184517im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Cancel build in PostProcessScene? 0 Answers
BCE0044 erro only shows when trying to build .apk 0 Answers
How to make add force/Physics consistent between editor and builds? 1 Answer
How to exclude "Selection & Handles" and other editor-specific code in builds? 2 Answers
Distribute terrain in zones 3 Answers