My setText node isn't working




The set text isn’t changing the widget that I have created.

I have ensured that the set text has a value to set.
I checked that I wasn’t accidentally creating more than one widget at a time.

Thank you in advance!

Select “GetHitActor” and press f9 to add a break point.
Once the event is triggered step through it (should be f10) and see if the cast to bp_note is successful.

The cast in the foreach loop isn’t needed as you are only collecting BP_Note actors

I have checked and the cast is indeed successful.

I have to note, that I am casting a value that is instance editable, could that be a cause for the problem?
If it is, how can I fix it?

Nvm, I got it working. I was accidentally creating the widget at the beginning of the game.
For some reason, I had added the “Create Widget” to Event Begin Play.