logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityUserSystemUtils

    Helpers to detect user system platform (desktop, mobile, consoles, web)

    Inheritance
    object
    UnityUserSystemUtils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Global.Infrastructure.Utils
    Assembly: Serenity.UnityGlobal.Infrastructure.dll
    Syntax
    public static class UnityUserSystemUtils

    Methods

    IsAndroidPlatform()

    Checks if the current platform is Android.

    Declaration
    public static bool IsAndroidPlatform()
    Returns
    Type Description
    bool

    IsConsolePlatform()

    Checks if the current platform is any console (PlayStation, Xbox, or Nintendo Switch).

    Declaration
    public static bool IsConsolePlatform()
    Returns
    Type Description
    bool

    IsIosPlatform()

    Checks if the current platform is iOS.

    Declaration
    public static bool IsIosPlatform()
    Returns
    Type Description
    bool

    IsLinuxPlatform()

    Checks if the current platform is GNU/Linux.

    Declaration
    public static bool IsLinuxPlatform()
    Returns
    Type Description
    bool

    IsMacPlatform()

    Checks if the current platform is Mac.

    Declaration
    public static bool IsMacPlatform()
    Returns
    Type Description
    bool

    IsMobilePlatform()

    Checks if the current platform is a mobile platform (iOS or Android).

    Declaration
    public static bool IsMobilePlatform()
    Returns
    Type Description
    bool

    IsNintendoSwitchPlatform()

    Checks if the current platform is Nintendo Switch.

    Declaration
    public static bool IsNintendoSwitchPlatform()
    Returns
    Type Description
    bool

    IsPlayStation4Platform()

    Checks if the current platform is PlayStation 4.

    Declaration
    public static bool IsPlayStation4Platform()
    Returns
    Type Description
    bool

    IsPlayStation5Platform()

    Checks if the current platform is PlayStation 5.

    Declaration
    public static bool IsPlayStation5Platform()
    Returns
    Type Description
    bool

    IsPlayStationPlatform()

    Checks if the current platform is any PlayStation (4 or 5).

    Declaration
    public static bool IsPlayStationPlatform()
    Returns
    Type Description
    bool

    IsStandalonePlatform()

    Checks if the current platform is a standalone desktop platform.

    Declaration
    public static bool IsStandalonePlatform()
    Returns
    Type Description
    bool

    IsWebGlPlatform()

    Checks if the current platform is WebGL.

    Declaration
    public static bool IsWebGlPlatform()
    Returns
    Type Description
    bool

    IsWindowsPlatform()

    Checks if the current platform is Windows.

    Declaration
    public static bool IsWindowsPlatform()
    Returns
    Type Description
    bool

    IsXboxOnePlatform()

    Checks if the current platform is Xbox One.

    Declaration
    public static bool IsXboxOnePlatform()
    Returns
    Type Description
    bool

    IsXboxPlatform()

    Checks if the current platform is any Xbox (One or Series).

    Declaration
    public static bool IsXboxPlatform()
    Returns
    Type Description
    bool

    IsXboxSeriesPlatform()

    Checks if the current platform is Xbox Series.

    Declaration
    public static bool IsXboxSeriesPlatform()
    Returns
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved