logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AnimationHubAuthoringPromptGui

    Draws every inline "prompt" row AnimationHubUnityTabGui can open under a row — Add/Rename State and Rename Parameter's plain name field, Add Parameter's name-plus-type-popup, Add Transition's source/destination/condition popup strip, and Set Weight's float field. Split out of AnimationHubUnityTabGui once the tree-rendering file and its prompt rendering together pushed past the ~600-line size guidance — a prompt's own field widgets are one responsibility, which row state and validator findings it renders alongside is another. Every method here is driven purely by an Prompt row-key match, exactly like the tab file's own foldable/leaf row drawing, so which one (if any) renders is decided the same way on both sides of the split.

    Inheritance
    object
    AnimationHubAuthoringPromptGui
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Editor.AnimationHub.Window
    Assembly: Serenity.AnimationHub.Editor.dll
    Syntax
    public static class AnimationHubAuthoringPromptGui

    Methods

    DrawAddParameterPromptIfOpen(string, AnimationHubAuthoringActions)

    The "+ Parameter" inline row: a name field and a type popup beside Add/Cancel — the one prompt shape here with a non-text field, so it does not fit DrawTextPromptIfOpen(string, string, AnimationHubAuthoringActions, Action).

    Declaration
    public static void DrawAddParameterPromptIfOpen(string rowKey, AnimationHubAuthoringActions actions)
    Parameters
    Type Name Description
    string rowKey
    AnimationHubAuthoringActions actions

    DrawAddTransitionPromptIfOpen(string, LayerEntry, IReadOnlyList<ParameterEntry>, AnimationHubAuthoringActions)

    The "+ Transition" inline row: source/destination state popups and an optional condition (toggle + parameter popup + mode + threshold) beside Add/Cancel — kept as one row with popups per this phase's brief, not a wizard.

    Declaration
    public static void DrawAddTransitionPromptIfOpen(string rowKey, LayerEntry layer, IReadOnlyList<ParameterEntry> parameters, AnimationHubAuthoringActions actions)
    Parameters
    Type Name Description
    string rowKey
    LayerEntry layer
    IReadOnlyList<ParameterEntry> parameters
    AnimationHubAuthoringActions actions

    DrawGenerateClipPromptIfOpen(string, AnimationHubAuthoringActions)

    The "+ Generate Clip" inline row: a name field, preset popup, duration/amplitude floats and a loop toggle beside Generate/Cancel — builds a small procedural clip via GenerateClip(Input) with no source animation required.

    Declaration
    public static void DrawGenerateClipPromptIfOpen(string rowKey, AnimationHubAuthoringActions actions)
    Parameters
    Type Name Description
    string rowKey
    AnimationHubAuthoringActions actions

    DrawSetLayerWeightPromptIfOpen(string, AnimationHubAuthoringActions)

    The "Set Weight" inline row: a single float field beside Set/Cancel.

    Declaration
    public static void DrawSetLayerWeightPromptIfOpen(string rowKey, AnimationHubAuthoringActions actions)
    Parameters
    Type Name Description
    string rowKey
    AnimationHubAuthoringActions actions

    DrawTextPromptIfOpen(string, string, AnimationHubAuthoringActions, Action)

    The generic "type a name, Confirm/Cancel" row a plain text-entry authoring action opens (Add State, Rename State, Rename Parameter) right under the row it belongs to.

    Declaration
    public static void DrawTextPromptIfOpen(string rowKey, string confirmLabel, AnimationHubAuthoringActions actions, Action confirm)
    Parameters
    Type Name Description
    string rowKey
    string confirmLabel
    AnimationHubAuthoringActions actions
    Action confirm
    In this article
    © 2026 Serenity. All Rights Reserved