Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by HomeSpunGames · May 10, 2012 at 09:55 PM · androidiosdeviceidinfo

Show device info such as resolution, OS, GPU, etc...

Hey,

Is there a script or something that will show essential device info. Something that will show things like device resolution, OS version, GPU. I am looking to test my game on a bunch of different iOS and Android devices, so having info like that in the corner as GUI text would be very useful!

Something like this:

 FPS: 25.7 (Note: I already know how to integrate FPS)
 
 RAM USE: 256.2mb
 
 RESOLUTION: 960 x 640
 
 Device ID: iPhone 4,1
 
 OS: iOS 5.1

Any advice would be great!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by PAHeartBeat · Jun 20, 2015 at 12:07 PM

you can use systeminfo class

if UNITY_IOS

Model: " + iPhone.generation.ToString() + #endif #if UNITY_ANDROID "
Model: " + SystemInfo.deviceModel.ToString() + #endif "
Type: " + SystemInfo.deviceType + "
OS Version: " + SystemInfo.operatingSystem + "
System Memory: " + SystemInfo.systemMemorySize + "
Graphic Device: " + SystemInfo.graphicsDeviceName + " (" + SystemInfo.graphicsDeviceVersion + ")" + "
Graphic Memory: " + SystemInfo.graphicsMemorySize + "
Graphic Fill Rate: " + SystemInfo.graphicsPixelFillrate + "
Graphic Max TexSize: " + SystemInfo.maxTextureSize + // "
Graphic Shader Levl: " + SystemInfo.graphicsShaderLevel + "
Support Compute Shader: " + SystemInfo.supportsComputeShaders + "
Processor Count: " + SystemInfo.processorCount + "
Processor Type: " + SystemInfo.processorType + // "
Support 3D Texture: " + SystemInfo.supports3DTextures + "
Support Shadow: " + SystemInfo.supportsShadows;

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ABerlemont · Oct 27, 2017 at 03:59 PM 1
Share

if anyone interested here is another formating if the same info (to copy/paste)

 static public string getSystemInfo()
 {
     string str = "<color=red>SYSTEM INFO</color>";

     #if UNITY_IOS
     str += "\n[iphone generation]"+UnityEngine.iOS.Device.generation.ToString();
     #endif

     #if UNITY_ANDROID
     str += "\n[system info]" + SystemInfo.deviceModel;
     #endif

     str += "\n[type]" + SystemInfo.deviceType;
     str += "\n[os version]" + SystemInfo.operatingSystem;
     str += "\n[system memory size]" + SystemInfo.systemMemorySize;
     str += "\n[graphic device name]" + SystemInfo.graphicsDeviceName + " (version " + SystemInfo.graphicsDeviceVersion + ")";
     str += "\n[graphic memory size]" + SystemInfo.graphicsMemorySize;

     str += "\n[graphic max texSize]" + SystemInfo.maxTextureSize;
     str += "\n[graphic shader level]" + SystemInfo.graphicsShaderLevel;
     str += "\n[support compute shader]" + SystemInfo.supportsComputeShaders;

     str += "\n[support gyro]" + SystemInfo.supportsGyroscope;
     str += "\n[support accelero]" + SystemInfo.supportsAccelerometer;

     str += "\n[processor count]" + SystemInfo.processorCount;
     str += "\n[processor type]" + SystemInfo.processorType;
     str += "\n[support 3d texture]" + SystemInfo.supports3DTextures;
     str += "\n[support shadow]" + SystemInfo.supportsShadows;

     str += "\n[platform] " + Application.platform;
     str += "\n[screen size] " + Screen.width + " x " + Screen.height;

     Resolution[] ress = Screen.resolutions;
     str += "\n[supported resolutions] x" + ress.Length;
     for (int i = 0; i < ress.Length; i++)
     {
     str += "\n  L " + ress[i].width + "x" + ress[i].height + " hz " + ress[i].refreshRate;
     }

     str += "\n[screen pixel density dpi] " + Screen.dpi;

     str += "\n[input:touch support] " + Input.touchSupported;
     str += "\n[input:multi touch enabled] " + Input.multiTouchEnabled;

     return str;
 }
avatar image poliman ABerlemont · May 17, 2021 at 01:07 PM 0
Share

good template edit: $$anonymous$$ = "M" :)

avatar image ABerlemont poliman · May 17, 2021 at 01:19 PM 0
Share

I just updated it with my lastest version :)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Mobile aspect ratio and scaling - Use 16:10 or 16:9 base for full screen background ? 0 Answers

How to tell if the device is android or ios 3 Answers

Is it possible to check if the touchscreen keyboard has been closed? 0 Answers

Embed device maps into unity 3D 0 Answers

Check Camera Permissions for iOS and Android? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges