Class SequenceDefinitionRowSeed
Reads an existing UnitySequencePlayerSettings's
Definitions back into CreateSequencePlayerWindow's own
editable row shape — the inverse of SequencePlayerCreator's private
ApplyDefinitionFields/ApplyStages, so the window can seed its Definitions list from the
resolved settings instead of opening EMPTY and having Serenity.SequencePlayer.Infrastructure.Editor.Builder.SequencePlayerCreator.ApplySettingsFields(Serenity.SequencePlayer.Infrastructure.Editor.Builder.SequencePlayerCreator.Input,Serenity.SequencePlayer.Infrastructure.Settings.UnitySequencePlayerSettings,System.Collections.Generic.List{Serenity.SequencePlayer.Infrastructure.Settings.UnitySequenceDefinition})'s
"the list is the truth" contract silently strip every reference on Create. Pure, so unit-testable
directly, mirroring LocalizationTableSelectionGui.SeedFrom.
Inherited Members
Namespace: Serenity.SequencePlayer.Infrastructure.Editor.Builder
Assembly: Serenity.UnitySequencePlayer.Infrastructure.Editor.dll
Syntax
public static class SequenceDefinitionRowSeed
Methods
FromSettings(UnitySequencePlayerSettings, Action<string>)
One row per definition settings references, in order. A null
settings (create-new) yields an empty list. A null entry within
Definitions is skipped and reported through
warn instead of throwing or producing a blank row.
Declaration
public static List<SequenceDefinitionRowSeed.DefinitionRow> FromSettings(UnitySequencePlayerSettings settings, Action<string> warn)
Parameters
| Type | Name | Description |
|---|---|---|
| UnitySequencePlayerSettings | settings | |
| Action<string> | warn |
Returns
| Type | Description |
|---|---|
| List<SequenceDefinitionRowSeed.DefinitionRow> |