logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuOptionValueService

    Service responsible for setting and shifting option values in the menu system.
    Manages value validation against min/max constraints and persists changes to game settings.

    Inheritance
    object
    UnityMenuOptionValueService
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Menu.Infrastructure.Views.Factories
    Assembly: Serenity.UnityMenu.Infrastructure.dll
    Syntax
    public class UnityMenuOptionValueService

    Constructors

    UnityMenuOptionValueService(IGameSettingsService, float)

    Declaration
    public UnityMenuOptionValueService(IGameSettingsService gameSettingsService, float floatIncrement)
    Parameters
    Type Name Description
    IGameSettingsService gameSettingsService
    float floatIncrement

    Methods

    GetOptionStringValuesFromSettings(UiOption)

    Declaration
    public ConfigurationEntry[] GetOptionStringValuesFromSettings(UiOption option)
    Parameters
    Type Name Description
    UiOption option
    Returns
    Type Description
    ConfigurationEntry[]

    SetOptionValue(UnityMenuView, string, string)

    Declaration
    public void SetOptionValue(UnityMenuView view, string value, string optionId)
    Parameters
    Type Name Description
    UnityMenuView view
    string value
    string optionId

    ShiftOptionValue(UnityMenuView, UnityUiInteractableComponent, int)

    Declaration
    public void ShiftOptionValue(UnityMenuView view, UnityUiInteractableComponent selectedComponent, int shiftIndex)
    Parameters
    Type Name Description
    UnityMenuView view
    UnityUiInteractableComponent selectedComponent
    int shiftIndex
    In this article
    © 2026 Serenity. All Rights Reserved