Using Verse fields events in a UMG User Widget
On this page
811 Comments6,789 Views
Introduction
Starting with 39.40, events can be defined in Verse fields in UMG. Create events that can be bound to widget events such as a button click or hovered event. Trigger callbacks when events are triggered by awaiting for an event directly in your Verse code.
This tutorial showcases an example where a Verse field event triggers changes on a User Widget using a button's On Clicked event in UMG.
Looking forward to seeing what everyone does with this feature!
All materials are created from UI materials available in the Fortnite > UI > Material folder.
To learn more about the basics of Verse fields, read through Using Verse fields in a UMG User Widget.
Video
Helper Functions
This creates a custom event class which accepts an event from Verse fields and fires a callback to any function once the event is signaled.
Create an empty Verse class and paste this code snippet in it to use these functions across your entire project.
# Custom event class to hold an Event, Cancel, and Await function
event_subscription := class:
CancelEvent:event() = event(){}
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 your BrainDead.TV / BrainDeadGuild Discord account for full access.