UI text (binding) disappear after packaging.

I create a UI widget in character BP,


An Actor called BP_ScoreTarget with a variable called Score and to add 1 each time when a ball overlaps
in UI widget BP, create a variable(type:BP_ScoreTarget) and bind a text to it’s variable Score.
It works in Editor but the Text bind with Score disappears after packaging.
I am really new to UE. Does anyone knows why the Score disappears? Thanks.

Double check your project setting your map is set.

Check your game mode as well if you using any.

Try to add some print string to debug and test on package dev.

1 Like

Thank you so much for indicating the direction!
After many hours of googling and testing I finally figured it out.

Here is my solution:
Create a new BP to create the UI widget(not in the Character BP). Place it in the scene.
Give the new BP a variable as the type of BP_ScoreTarget and manually assign it in Editor.

From my limited knowledge, this is called direct communication between BPs.
Now, the Score variable can be passed through from the target(BP_ScoreTarget) to UI widget after PACKAGING.

It seems when Character spawned after game start after PACKAGING, those BPs wont run in an expected way.

2 Likes

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