logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityFeedbackDefinitionProvider

    Unity implementation of IFeedbackDefinitionProvider. Resolves FeedbackDefinition ScriptableObjects by Id or Guid via UnityAssetUtils (Addressables / Resources), then maps them to DTOs.

    Inheritance
    object
    UnityFeedbackDefinitionProvider
    Implements
    IFeedbackDefinitionProvider
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Feedback.Infrastructure.Services
    Assembly: Serenity.UnityFeedback.Infrastructure.dll
    Syntax
    public class UnityFeedbackDefinitionProvider : IFeedbackDefinitionProvider

    Constructors

    UnityFeedbackDefinitionProvider(ILogService)

    Initializes the provider.

    Declaration
    public UnityFeedbackDefinitionProvider(ILogService logService = null)
    Parameters
    Type Name Description
    ILogService logService

    Where the collection load writes the shipped definitions it dropped in favour of the project's adopted twins. Null loads silently.

    Methods

    TryGet(string, out FeedbackDefinitionData)

    Attempts to find a FeedbackDefinition asset whose Id matches the given id string, then converts it to a FeedbackDefinitionData DTO.

    Declaration
    public bool TryGet(string id, out FeedbackDefinitionData definition)
    Parameters
    Type Name Description
    string id

    The definition Id string to look up.

    FeedbackDefinitionData definition

    The resolved DTO when found; default when not found.

    Returns
    Type Description
    bool

    True when the definition was located and mapped successfully.

    Implements

    IFeedbackDefinitionProvider
    In this article
    © 2026 Serenity. All Rights Reserved