Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How i can know the platform that the player uses?

Discussion in 'General Discussion' started by bertus1987, Aug 24, 2023.

  1. bertus1987

    bertus1987

    Joined:
    Jul 23, 2022
    Posts:
    5
    Hello,
    I need by script how i can know the platform that the player is using. If the player is using pc I don't want to make visible the joystick but if the player is using tablet or mobile the joystick must be visible.
    Thank you
    Alberto
     
  2. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,874
  3. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,084
  4. bertus1987

    bertus1987

    Joined:
    Jul 23, 2022
    Posts:
    5