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.
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.