|
| 30 Jun 2015 04:30 PM |
| Is it possible to find out what find of device the player is using? |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:31 PM |
You can if its simply looking at a computer versus a tablet/phone using userinputservice
But nothing more specific than that |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:31 PM |
You can use UserInputService:
if UIS.TouchEnabled then print("ON MOBILE") else print("NOT ON MOBILE") end |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:34 PM |
So I could not find out if they are on a Laptop or Computer?
|
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 Jun 2015 04:38 PM |
| Laptops are the same as your computers. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:38 PM |
| You can check the size of the screen though, and since the average laptop screen sizes are like 13 inch to 17 inch, and a desktop screen which is around 20 inch to 30 inch. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 Jun 2015 04:40 PM |
"You can check the size of the screen though, and since the average laptop screen sizes are like 13 inch to 17 inch, and a desktop screen which is around 20 inch to 30 inch."
How do you get the screensize in inches? |
|
|
| Report Abuse |
|
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 Jun 2015 04:45 PM |
| Please do tell me how you are planning to get the screensize in inches - on roblox. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:48 PM |
1. Make a measurement converter, for pixels to inches.
1a. Make your own formulae for the converter. 1b. Use HTTP Service and use a webserver to convert the measurements.
2. Use the mouse.ViewSizeX and ViewSizeY to get the pixels.
3. Use the converter you just made.
4. You did it. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:49 PM |
| So I could predict the size of the screen, you see I'm doing it for GUIS. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 Jun 2015 04:49 PM |
Ok. Lets say my screen is: 1080*1980
Get me the size in inches.
1080*1980 is exactly all the info you're going to get from the client. You have no way to get pixel density. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Jun 2015 04:52 PM |
| I don't know, use a pixel to inch converter? |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 Jun 2015 04:53 PM |
| You need the pixel density. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:54 PM |
So you literally made me waste that time.. Thanks. |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
|
| 30 Jun 2015 04:54 PM |
You're welcome.
Do I get a cash prize? |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:54 PM |
| Dude, desktop and laptops are practically the same, some have bigger borders, and screen size, but honestly, noone wants to know what they are on... just make the game, then use the Roblox Studio emulater to see how it looks. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 04:55 PM |
I want a refund.
How do you pay back time? |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 06:45 PM |
| I've began developing GUI's and I know I have to use scale, It looks relatively decent on everything but 'AVERAGE LAPTOP' which makes it look slightly uneven which totally ruins the GUI. I don't want to leave a bad impression as if that is the first thing a Player see's when they join I doubt they will stay. |
|
|
| Report Abuse |
|
|
|
| 30 Jun 2015 07:20 PM |
local isWindows = game:GetService("GuiService").IsWindows local isTouch = game:GetService("UserInputService").TouchEnabled
print(isWindows) print(isTouch)
Also, Roblox will probably be releasing a new API to get the exact platform soon. |
|
|
| Report Abuse |
|
|