logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FeedbackScreenOverlay

    Lazily-created full-screen overlay used by screen-flash and similar feedback channels. Creates a DontDestroyOnLoad GameObject with a Canvas (ScreenSpaceOverlay, sortingOrder 12000) and a full-screen Image that does NOT raycast (it must not consume input). Exposes simple color/alpha/hide helpers so channels never touch the Image directly.

    Inheritance
    object
    FeedbackScreenOverlay
    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.Overlay
    Assembly: Serenity.UnityFeedback.Infrastructure.dll
    Syntax
    public class FeedbackScreenOverlay

    Constructors

    FeedbackScreenOverlay()

    Declaration
    public FeedbackScreenOverlay()

    Methods

    Hide()

    Hides the overlay by setting alpha to zero.

    Declaration
    public void Hide()

    SetAlpha(float)

    Sets the overlay's alpha. Ensures the overlay is created and active.

    Declaration
    public void SetAlpha(float alpha)
    Parameters
    Type Name Description
    float alpha

    Alpha value (0..1).

    SetColor(Color)

    Sets the color (RGB) of the overlay. Does not change alpha. Ensures the overlay is created and active.

    Declaration
    public void SetColor(Color color)
    Parameters
    Type Name Description
    Color color

    Target color (alpha component is ignored — use SetAlpha(float)).

    In this article
    © 2026 Serenity. All Rights Reserved