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
MenuServiceSettingsFieldsGui
Assembly: Serenity.UnityMenu.Infrastructure.Editor.dll
public static class MenuServiceSettingsFieldsGui
Methods
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
Returns
Declaration
public static string ValidateControllerIdField(string candidateControllerId)
Parameters
| Type |
Name |
Description |
| string |
candidateControllerId |
|
Returns
Declaration
public static string ValidateIdField(string candidateId)
Parameters
| Type |
Name |
Description |
| string |
candidateId |
|
Returns