logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MenuServiceSettingsFieldsGui

    The Menu Service Settings identity fields (Asset Name, Id, Controller Id, Border Margin) shared by CreateMenuServiceSettingsWindow and MenuManagerWindow's own Settings step — both wizards get or create the same UnityMenuServiceSettingsDefinition singleton, so the fields that describe it are drawn in exactly one place. Pure presentation over caller-owned values, mirroring Serenity.Global.Infrastructure.Editor.SerenityWizardTargetAssetGui's own "no window state" contract.

    Inheritance
    object
    MenuServiceSettingsFieldsGui
    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.Editor.Builder
    Assembly: Serenity.UnityMenu.Infrastructure.Editor.dll
    Syntax
    public static class MenuServiceSettingsFieldsGui

    Methods

    Draw(SerenityWizardTargetAsset, string, Func<string, string>, string, string, Vector2)

    Draws the Asset Name field (disabled via Serenity.Global.Infrastructure.Editor.SerenityWizardTargetAssetGui.IdentityFieldScope(Serenity.Global.Infrastructure.Editor.SerenityWizardTargetAsset) while target updates an existing asset in place) followed by Id, Controller Id and Border Margin — the latter three stay editable regardless of create/update mode, since they are the settings values themselves rather than the asset's own identity.

    Declaration
    public static MenuServiceSettingsFieldsGui.Result Draw(SerenityWizardTargetAsset target, string assetName, Func<string, string> validateAssetName, string id, string controllerId, Vector2 borderMargin)
    Parameters
    Type Name Description
    SerenityWizardTargetAsset target
    string assetName
    Func<string, string> validateAssetName
    string id
    string controllerId
    Vector2 borderMargin
    Returns
    Type Description
    MenuServiceSettingsFieldsGui.Result

    ValidateControllerIdField(string)

    Declaration
    public static string ValidateControllerIdField(string candidateControllerId)
    Parameters
    Type Name Description
    string candidateControllerId
    Returns
    Type Description
    string

    ValidateIdField(string)

    Declaration
    public static string ValidateIdField(string candidateId)
    Parameters
    Type Name Description
    string candidateId
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved