Not showing updated value in UI

Hi everyone, i am having a problem from the past few days. I am trying to update score when clicked on a sphere mesh and show it in the UI. When i used the on tick event the updated value is shown in UI but when i used on click event, it is not showing in viewport UI but value is increasing finely when i checked using print string. Please help.


Just to clarify:

  • if you print here, it works, right?

image

And this is the Pawn that you are possessing?

The answer for both is yes.

Does the cast fail?

No, updated value is showing in UI when i used event tick to add the value of score.

Is this variable updated elsewhere? Or is this the only place?

Only here

The issue is not with the example you’ve provided then. There’s something about your project we do not know about.

At this point I don’t even knwo what to ask, though.

Thank you for you time