Add UI to all players

I see the issue most likely which is not shown in his code above. The Text widget at the bottom of CreateUI() has probably been initialized and made somewhere only once. However in order for it to work you need a seperate widget for every player you are drawing the canvas for. That would look something like this:

AddUI():void=
    Players := GetPlayspace().GetPlayers()
    for(Player : Players):
        if(PlayerUI := GetPlayerUI[Player]):
            Text : widget = text_block{DefaultText := DefaultText, DefaultTextColor := DefaultTextColor, DefaultTextOpacity := DefaultTextOpacity, DefaultJustification := DefaultJustification, DefaultOverflowPolicy := DefaultOverflowPolicy}
            PlayerUI.AddWidget(CreateUI(Text))

CreateUI(Text : widget):canvas=
    UI := canvas:
        Slots := array:
            canvas_slot:
                Anchors := anchors{Minimum:= vector2{X:= 0.5, Y:= 0.1}, Maximum:= vector2{X:= 0.5, Y:= 0.1}}
                Offsets := margin{Top:= 0.0, Left := 0.0, Right := 0.0, Bottom := 0.0}
                Alignment := vector2{X:= 0.5, Y:= 0.5}
                ZOrder := 10
                Widget := Text
1 Like