How to detect if Player is specifically using a Phone or Tablet?

  1. What do you want to achieve?
    I want to be able to detect whether a player is using a phone or a tablet. This is not the same as checking to see if the player is on mobile.

  2. What is the issue?
    I am unsure how I can approach this problem

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I was thinking about checking the player’s screen size to see if the screen is big or small. The problem is this may be inconsistent if some kind of large cellular device is considered a tablet rather than a phone (not sure if that might be a problem). There was a similar post regarding the question, but it doesn’t answer how to detect the difference between a phone vs tablet.

I am trying to hide one or the other depending on what size of the player’s screen is:
image

3 Likes

It’s not possible to detect if it’s specifically a Phone or Tablet. I would recommend just setting the Size and Positions to scale so that it automatically scales correctly for all devices.

Even if you could see if it’s a tablet or phone, some tablets are larger and smaller than others, and the same goes for phones.

3 Likes

You could try Murder Mystery 2’s approach, which is to ask the player which type of device they’re using (phone/tablet)

3 Likes