Verse

More Features Coming Soon

1# Include Dependencies
2using { /UnrealEngine.com/Temporary/UI }
3using { /UnrealEngine.com/Temporary/SpatialMath }
4using { /Fortnite.com/UI }
5using { /Verse.org/Colors }
6
7# Create a canvas that contains all of our widgets
8# Must be applied to all of our players, see example below
9# Put this in your device class
10CreateMyUI() : canvas =
11    MyCanvas : canvas = canvas:
12        Slots := array{}
13    
14    return MyCanvas
15
16# Helper function to translate strings into message types
17TextForUI<localizes>(InText : string) : message = "{InText}"
18
19# Example Usage (In OnBegin() or Spawner.SpawnedEvent() handler)
20for(Player : ListOfPlayers):
21    if(PlayerUI := GetPlayerUI[Player]):
22        MyUI := CreateMyUI()
23        PlayerUI.AddWidget(MyUI)
24

Add a widget

to get started

Properties