SystemInfo.operatingSystem Manual     Reference     Scripting  
Scripting > Runtime Classes > SystemInfo
SystemInfo.operatingSystem

static var operatingSystem : string

Description

Operating system name (Read Only).

JavaScripts
// Prints "Windows XP Service Pack 3 (5.1.2600)" on Windows XP SP3

print (SystemInfo.operatingSystem);

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
print(SystemInfo.operatingSystem);
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
print(SystemInfo.operatingSystem)