Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Waiting for Unity Remote 4 until game is displayed on the phone?

Discussion in 'Scripting' started by erana79, Apr 16, 2015.

  1. erana79

    erana79

    Joined:
    Jun 26, 2013
    Posts:
    61
    Hello everyone!

    I am accessing gyro data with my phone's Unity Remote 4 app.

    There is one problem though:
    When i start my game, Unity Remote 4 needs some time to start (and display) the game as well.
    Until UR4 is ready i get a lot of crap from the Gyroscope object.
    Once the game is displayed on the phone as well, the gyroscope works and i get the correct data.

    Is there any way to "wait" for Unity Remote 4 until it's done starting the game and sends the right gyro data?
    Is there some event or callback that's fired when UR is ready?

    Thanks for your help in advance!