docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Creating a Notification Effect

    The Notification Effect allows you to display a custom message on the HUD when a player interacts with an object. This is useful for providing feedback, story elements, or gameplay hints.

    Prerequisites: You should have a ModularInteractable object in your scene. If you don't, follow the Create a Pickup tutorial to create one.

    You can also test with any of the ModularInteractables in the [BB] Platformer scene

    Steps

    1. Add the Effect Component

    1. Select your ModularInteractable object in the scene.
    2. In the dropdown, select Send Notification Effect.

    2. Configure the Notification

    Configure the component settings as follows:

    • Notification Event: Assign the NotificationEvent asset.
      • Location: Assets/Core/GameEvents/Player/NotificationEvent.asset
    • Notification Message: Enter the text you want to display (e.g., "Secret Found!", "Door Unlocked").
    • Include Player Name: Check this if you want the interactor's name to appear before the message (e.g., "PlayerOne: Secret Found!").

    3. Test in Play Mode

    1. Enter Play Mode.
    2. Interact with the object
    3. Observe the notification appear in the top-right corner of the screen.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)