Hi, so I’m in the process of learning Unreal by prototyping a basic game completely through C++, and I was researching how to implement a basic UI/HUD. Pretty much every guide and tutorial at some point used Blueprints to bind functionality to the custom UserWidget, and while I’ll probably have to do that, I was wondering if there was any way to completely just write it in code?
Right now, I’m just trying to make a basic scoring system where a TextBox will just uptick by 1 every time a specific collision occurs. I know there’s meta=(BindWidget()), but nothing tells me how to change the value once a FText (converted from int to FString to FText) is binded.
Also, minor side question: I assume I should keep all scoring logic out of the widget? I once tried to control the score through the widget, but it both did not work and consistently crashed Unreal. I relocated all the logic to the gamemode for now.