Search Unity

Device Simulator doesn't detect if i'm on handheld mode

Discussion in 'Editor & General Support' started by Vanderley5974, May 4, 2022.

  1. Vanderley5974

    Vanderley5974

    Joined:
    Nov 27, 2016
    Posts:
    21
    Hi!
    I recently upgraded from Unity 2020 to 2021, and I have come across an issue which makes playtesting for my game even more difficult

    Basically: I use Device Simulator, and when I went on to playtest if something worked for mobile I would go there! I used "if (SystemInfo.deviceType == DeviceType.Handheld)" to detect if it was mobile and it would work everytime I used device simulator

    However, now that I upgraded to 2021, this doesn't seem to work anymore and i'm not sure why? It doesn't set the detected device to handheld anymore, how'd I notice this? It's no longer playing Ads, or even bringing up the mobile controls UI automatically, which breaks everything in my game

    I am not sure what to do but please, if you have a solution do let me know! <3
     
  2. Vanderley5974

    Vanderley5974

    Joined:
    Nov 27, 2016
    Posts:
    21
    Just tried out a simple function to test out what device it was detecting, it said desktop when it shouldve said handheld
    See the attached image
     

    Attached Files: