Add Shadow and/or Stroke

I want to add a drop shadow and/or stroke to my text but I’m unsure how to. This is my code:

    InitUIElims(Player:player)<suspends>:void=
        TextWidget : text_block = text_block{DefaultTextColor := NamedColors.Black}
        NewCanvas : canvas = canvas:
            Slots := array:
                canvas_slot:
                    Widget := TextWidget
                    Anchors := anchors{ Minimum := vector2{ X := 0.07, Y := 0.66}, Maximum := vector2{ X := 0.07, Y := 0.66}}
                    SizeToContent := true
TextWidget : text_block = text_block{
        DefaultText := ("MyText"),
        DefaultTextColor := NamedColors.White,
        DefaultShadowColor := NamedColors.Black,
        DefaultShadowOffset := option{vector2{X:=-5.0, Y := 10.0}}}
        TextWidget.SetShadowOpacity(1.0) 

search Text_Block in the fornite digest you’ll find more there

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.