How Can I Check Player Device Platform In Javascript?

Discussion in 'How Can I...?' started by khaelou, Aug 22, 2021.

  1. khaelou

    khaelou Boxer

    Joined:
    Oct 2, 2020
    Messages:
    18
    Likes Received:
    6
    I'm trying to hide a mobile UI menu for those who will play the game on desktop, is there a way to only show the UI screen to mobile players in a Javascript node?

    Thanks in advance, the idea of exporting multiple builds due to not having this implemented seems highly inefficient.

    PS: I'm aware Buildbox works with traditional JS code yet I'm not sure how far I can take it in it's current state. For example, we can't import external JS libraries for usage in games quite yet ;)
     
  2. Hue Buildbox

    Hue Buildbox Administrator Staff Member

    Joined:
    May 11, 2017
    Messages:
    371
    Likes Received:
    162
    Best option here is to remove or redesign the UI for desktop. Mobile exports can't be installed on desktop and vice-versa, so designing your menu UI specifically for the platform it's intended for is suggested in this case.
     
  3. khaelou

    khaelou Boxer

    Joined:
    Oct 2, 2020
    Messages:
    18
    Likes Received:
    6
    After attempting multiple times I figured this would be the route to take. Thanks for the justification.
     
    Hue Buildbox likes this.
  4. Hue Buildbox

    Hue Buildbox Administrator Staff Member

    Joined:
    May 11, 2017
    Messages:
    371
    Likes Received:
    162
    You're very welcome!
     
    khaelou likes this.

Share This Page