Search Unity

Listening to Subsystem on Ready?

Discussion in 'AR/VR (XR) Discussion' started by Extrys, May 11, 2020.

  1. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    345
    Hello im having a problem which is that i recenter the player un the level in a way that the head is in the place i want independently wheres the real player

    but seems that if the XR Subsystems havnt initizliced yet it head remains at v3 zero
    what i do is just substract the rotated local position of the head and add it to the rig

    Is there any way to listen to Subsystems Ready/Initialiced
    because the problem is giving me this is this upload_2020-5-11_3-56-3.png
    i can not find a way to await it to finish wich does in 1 or 2 seconds
    but i dont want to hard code a waiting in the code for this
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
  3. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    345