Raycast with layer mask dont work on Android (Quest 2)??

Having a problem. In Editor everything works, but when built for Android then Reycast only works if used without layer mask. If I use layer mask then it never return hit. Is raycast with layer mask do not work on android??

Sorry. Found the problem. Scripts in Editor and on Android device were executed in different order and that caused my problem.

So next time you might consider that if something as basic as this were true, you’d know about it already as so many devs would have torches and pitchforks out. :slight_smile: