VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › UI · Up to Fortnite · UI · 3 of 147 in UI
Browse Fortnite

Creating and Removing Widgets in UEFN

The following sections show how to add a widget to a player’s UI and remove a widget.

These examples use a text block widget, but you can use any kind of widget. See Widget Types for all the types of widgets you can use.

Adding a Widget

This example shows how to add a widget when a player interacts with a Button device in the level:

  1. Create a new Verse device and add it to the level. To learn how to create a new device in Verse, see Create Your Own Device Using Verse.
  2. Open your Verse file in Visual Studio Code with Verse Explorer.
  3. Add an editable Button device property to your Verse device and set up the reference to the Button device in your level. To learn how to create editable properties, see Customize Device Properties. # Set the Button device in the Editor to reference the device in the level @editable MyButton : button_device = button_device{}
  4. At the top of your Verse file, add the following lines to use the Verse UI API: using { /UnrealEngine.com/Temporary/UI } using { /Fortnite.com/UI } using { /UnrealEngine.com/Temporary/SpatialMath}
  5. This UI is only per player, so you'll need a reference to a player to access their UI. This example shows how to display a custom UI when the player interacts with a button, since events for devices include a reference to the player that interacted with the device. To learn how to set up event subscriptions, see Coding Device Interactions. `# Runs when the device is started in a running game OnBegin<override>()<suspends> : void = MyButton.InteractedWithEvent.Subscribe(HandleButtonInteraction)

    A custom UI can only be associated with a specific player, and only that player can see it

    HandleButtonInteraction(Agent : agent) : void =

    Display UI`

  6. Now, you can call the failable function GetPlayerUI[] in an if expression to get a reference to the player’s UI.

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated May 12, 2026
    Keep exploring
    More in UI · 3 of 147
    Prev
    attribution screen in fortnite creative
    Next
    creating ui with verse in unreal editor for fortnite
    Browse all files in this folder (A–Z)
    Next up
    • These examples use a text block widget, but you can use any kind of widget. See [Widget Types
    • This example shows how to add a widget when a player interacts with a [Button device
    • Adding a Widget
    • 2. Open your Verse file in Visual Studio Code with [Verse Explorer
    • Editable Properties In Verse
    • using { /UnrealEngine.com/Temporary/SpatialMath}`
    Related topics
    • Creating And Removing Widgets In Unreal Editor For Fortnite Ui
    • Creating Ui With Verse In Unreal Editor For Fortnite Ui
    • removewidget Ui
    • Ui Widget Editor In Unreal Editor For Fortnite Ui
    • removewidget Ui

    Related

    Open in graph →

    Linked docs

    • Verse Explorer User Interface Reference In Unreal Editor For Fortnite

    Related topics

    • Creating And Removing Widgets In Unreal Editor For Fortnite
    • Widget Types In Unreal Editor For Fortnite
    • Creating Ui With Verse In Unreal Editor For Fortnite
    • removewidget
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse