logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameSettingsOptionResolver

    Unity-specific resolver for game settings option selection and validation.
    Provides intelligent resolution of system configuration values to valid game settings options with comprehensive fallback handling.
    Supports string transformations, language normalization, case-insensitive matching, and character limit enforcement.
    Integrates snapshot field access with game settings definitions to ensure data consistency and validity.

    Inheritance
    object
    UnityGameSettingsOptionResolver
    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.Helpers
    Assembly: Serenity.UnitySystemConfiguration.Infrastructure.dll
    Syntax
    public static class UnityGameSettingsOptionResolver

    Methods

    ResolveSelectable(ISystemConfigurationSnapshot, SnapshotKeyMap, UnityGameSettingsDefinition, string)

    Resolves a system configuration value to a valid selectable game settings option key.
    Applies string transformations and normalizations (especially for language fields), supports manual overrides, and provides intelligent fallback to default or first available option.
    Performs case-insensitive matching and ensures canonical key casing from the game settings definition.
    Enforces character limits as defined in the game settings configuration.

    Declaration
    public static string ResolveSelectable(ISystemConfigurationSnapshot snapshot, SnapshotKeyMap map, UnityGameSettingsDefinition def, string preferredOverride)
    Parameters
    Type Name Description
    ISystemConfigurationSnapshot snapshot

    System configuration snapshot containing the source data

    SnapshotKeyMap map

    Field mapping configuration specifying source field and transformations

    UnityGameSettingsDefinition def

    Game settings definition containing valid options and default values

    string preferredOverride

    Optional manual override value (takes precedence over snapshot data)

    Returns
    Type Description
    string

    Valid game settings option key with proper casing and character limit enforcement

    In this article
    © 2026 Serenity. All Rights Reserved