logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class HudFeedbackDefinitionPicker

    Picks a project FeedbackDefinition asset's id for a HUD element's change-feedback field.

    Inheritance
    object
    HudFeedbackDefinitionPicker
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameUi.Infrastructure.Editor.Builder
    Assembly: Serenity.UnityGameUi.Infrastructure.Editor.dll
    Syntax
    public static class HudFeedbackDefinitionPicker
    Remarks

    Deliberately untyped: it finds candidate assets by class name through UnityEditor.AssetDatabase.FindAssets(System.String) and reads each one's Id through UnityEditor.SerializedObject reflection, rather than taking a typed reference to the Feedback module's asset type — so this Editor assembly needs no new asmdef dependency on Serenity.Feedback.Infrastructure just to offer a picker. The field itself stores a plain string, the same by-id convention IFeedbackSettings.MenuTickDefinitionId uses.

    Methods

    Draw(SerializedProperty, string)

    Draws the id field: a free-text fallback plus a button offering every project FeedbackDefinition's id.

    Declaration
    public static void Draw(SerializedProperty idProperty, string label)
    Parameters
    Type Name Description
    SerializedProperty idProperty

    The serialized string property storing the chosen definition id.

    string label

    Label rendered to the left of the field.

    In this article
    © 2026 Serenity. All Rights Reserved