Reputation: 109
I am new to Unreal Engine. Currently I am learning UE5. I am trying to change text and I had run into problem. And somehow I can't find any information about it.
I simply created user widget, I put a button and a text block. So the question is how can I change text in text block using onclick button event?
Upvotes: 0
Views: 5750
Reputation: 1389
For beginners, sometimes SetText
will not show due to "Context Sensitive" is ticked (by default)
So you need to uncheck the box and make sure to select correct type of SetText
with correct target widget type.
Upvotes: 1
Reputation: 109
I found the solution. It was easier than I thought.
That's it! Can't believe I spent so many time trying to find the solution in blueprint videos, but accidently found out how to do this from C++ code.
Upvotes: 1