Search Unity

Standalone Oculus crash-exits when accessing Physics.Raycast.hit.textureCoord

Discussion in 'AR/VR (XR) Discussion' started by JazzCat-9, Jun 2, 2019.

  1. JazzCat-9

    JazzCat-9

    Joined:
    Sep 1, 2015
    Posts:
    16
    Though it works fine when pressing Play in the Editor, the following line of code cause the built executable to crash-exit:

    Vector2 tempVect2 = hit.textureCoord ;

    As do:

    float tempX = hit.textureCoord.x;
    float tempY = hit.textureCoord.y;

    Anyone else having this problem?

    If so, any workarounds?
     
  2. YichStreet

    YichStreet

    Joined:
    Feb 4, 2020
    Posts:
    1
    I encounter this problem as you. The problem only exist in the standalone version. Have you got a solution? Thank you very much