Version: 2021.3

SystemInfo.operatingSystem

切换到手册
public static string operatingSystem ;

描述

This has the same functionality as SystemInfo.operatingSystem and also mimics platform-specific behavior in the Unity Editor.