SystemInfo
- deviceModel
- deviceName
- deviceUniqueIdentifier
- graphicsDeviceID
- graphicsDeviceName
- graphicsDeviceVendorID
- graphicsDeviceVendor
- graphicsDeviceVersion
- graphicsMemorySize
- graphicsPixelFillrate
- graphicsShaderLevel
- operatingSystem
- processorCount
- processorType
- supportsImageEffects
- SupportsRenderTextureFormat
- supportsRenderTextures
- supportsShadows
- systemMemorySize
SystemInfo.operatingSystem 操作系统
static var operatingSystem : string
Description描述
Operating system name (Read Only).
操作系统的名称(只读)。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
print(SystemInfo.operatingSystem);
}
}
// Prints "Windows XP Service Pack 3 (5.1.2600)" on Windows XP SP3
//打印当前操作系统的名称
print (SystemInfo.operatingSystem);
最后修改:2011年3月18日 Friday 17:12