|
I am trying to pass the Android Device name to a GUIText box so that people who do not wish to put their name in to the player name box will be shown as something other than a default text. I have the Java script for the command but I cannot get UnityScript to accept it. The Java is android.os.Build.MODEL; If anyone can help translate this to UnityScript I will give you a hug.
(comments are locked)
|
|
I found the line of code. SystemInfo.deviceModel; - for model name SystemInfo.deviceName; - for the user set name That's amazing. Thanks for letting us know too.
Feb 06 '12 at 07:20 AM
Aram Azhari
(comments are locked)
|

There is a similar question asked in the forums: http://forum.unity3d.com/threads/83294-Getting-phone-model-and-droid-version
I couldn't find anything in the scripting reference, but this is the closest thing to what we need to use to get that. http://unity3d.com/support/documentation/ScriptReference/AndroidJavaObject.Call.html