Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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

Discussion in 'Physics' started by battou, Sep 24, 2021.

  1. battou

    battou

    Joined:
    Jan 25, 2011
    Posts:
    197
    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??
     
  2. battou

    battou

    Joined:
    Jan 25, 2011
    Posts:
    197
    Sorry. Found the problem. Scripts in Editor and on Android device were executed in different order and that caused my problem.
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,529
    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. :)