Search Unity

Question Unity 2020 build for Hololens:WorldManager.state is Unavailable

Discussion in 'AR' started by guodan, Oct 13, 2020.

  1. guodan

    guodan

    Joined:
    Dec 22, 2016
    Posts:
    29
    Hello,
    When I use unity2020 build for Hololens, the WorldManager.state is always "Unavailable". I have set the XR Plug-in Management like this:
    upload_2020-10-13_15-14-33.png

    And it works well on Unity2019.3. The state is Active, then I can start my process.
    I alse notice this:
    upload_2020-10-13_15-17-50.png

    Dose this means the "state" is unuseful? So how can I get the Hololens world state?
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    WorldManager is part of the Legacy VR API that was deprecated in 2019.3 and removed in 2020. What is it you need from the world state specifically?
     
  3. guodan

    guodan

    Joined:
    Dec 22, 2016
    Posts:
    29
    My Process is
    1. start app
    2. check state
    3. if state is active, then set anchor position, and the next action; if state is unavailable, stop and return;

    So I need to known current world state. Is there anything replace "World.state"?
     
  4. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    guodan likes this.