Help with goal tracking

Currently using a widget to display how far away from the goal the player is. I’ve put the widget into the blueprint itself so it displays above the goal since that’s what I was told to do, and got tracking working, but the issue is it doesn’t change the distance to match the object itself.

I’ve got it showing up one at a time as each stage starts, but not matching the location. it always points towards the very first goal instead of the one I want?

How does the distance from the blueprint get into the widget?
You need to call the text update function on the widget after calculating the distance.

1 Like

Currently this is how it gets in

Ill try giving what you did a go if I can work it out

How do I make the update distance function? I tried doing it through a binding but I just keep getting this

Add a function to the widget via the MyBlueprint panel.

CreateFunc

Also remove the bind from the TextBlock.

RemoveBind

Avoid using bind in widgets as these functions are called on every tick which can cause performance issues.

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