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);
Page last updated: 2011-3-18