Hello everyone, for some reason, in the private version of my map the Ui image is not showing, while in the tests inside the creative it is working. Does anyone know what can it be?
using { /Fortnite.com/Devices }
using { /Fortnite.com/UI }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/UI }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Assets }
HudDevice := class(creative_device):
TeleportHud : texture = Teleport
(Player : player).InitCanvas() : void =
MyTextureBlock : texture_block = texture_block {DefaultImage := TeleportHud, DefaultDesiredSize := vector2{X := 400.0, Y := 400.0}}
NewCanvas : canvas = canvas:
Slots := array:
canvas_slot:
Widget := MyTextureBlock
Anchors := anchors{Minimum := vector2{X := 0.043, Y := 0.65 }, Maximum := vector2{X := 0.043, Y := 0.65 }}
if (PlayerUI := GetPlayerUI [Player]):
PlayerUI.AddWidget(NewCanvas)
OnBegin<override>()<suspends>:void=
for (Player : GetPlayspace().GetPlayers()) :
Player.InitCanvas()