Version: 2021.3
언어: 한국어

SystemInfo.operatingSystemFamily

매뉴얼로 전환
public static OperatingSystemFamily operatingSystemFamily ;

설명

Returns the operating system family the game is running on (Read Only).

This API is used by UI code to distinguish between desktop OS families with different UI conventions. For all non-desktop platforms it will currently return OperatingSystemFamily.Other.

using UnityEngine;

public class ExampleClass : MonoBehaviour { void Start() { if (SystemInfo.operatingSystemFamily == OperatingSystemFamily.MacOSX) Debug.Log("Do something special here"); } }

See Also: OperatingSystemFamily enum, SystemInfo class.