logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityScreenSystemMonitorsProvider

    Fallback provider that returns a generic single-monitor setup based on Unity's UnityEngine.Screen.currentResolution.
    Used on platforms without a dedicated OS-level monitors provider (see UnitySystemMonitorsProviderFactory). This is the Unity-specific replacement for the Business-layer NullSystemMonitorsProvider, which must stay engine-agnostic and can no longer read UnityEngine.Screen.currentResolution directly.

    Inheritance
    object
    UnityScreenSystemMonitorsProvider
    Implements
    ISystemMonitorsProvider
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.SystemConfiguration.Infrastructure.Providers
    Assembly: Serenity.UnitySystemConfiguration.Infrastructure.dll
    Syntax
    public class UnityScreenSystemMonitorsProvider : ISystemMonitorsProvider

    Constructors

    UnityScreenSystemMonitorsProvider()

    Declaration
    public UnityScreenSystemMonitorsProvider()

    Methods

    GetSystemMonitors()

    Gets information about the system monitors, derived from Unity's current screen resolution.

    Declaration
    public IReadOnlyList<OsMonitorInfo> GetSystemMonitors()
    Returns
    Type Description
    IReadOnlyList<OsMonitorInfo>

    A list containing a single monitor representing the current resolution.

    Implements

    ISystemMonitorsProvider
    In this article
    © 2026 Serenity. All Rights Reserved