Assigned UUserWidget* inside of another widget is always reset after compile
Hi, I try to dynamically create an interface using C++, but having an issue with UUserWidget.
The image attached shows some widgets assigned to the custom parent widget declared in C++ which is then placed within the main HUD widget of my project.
Here is declaration of the Type Button widget (other widgets declared the same way):
My issue is that after the project is closed or code being compiled the assigned widget values are reset to None. I understand it happens because of the pointers being used, but how do I fix that?
This is after recompile:
asked Jun 15 '19 at 12:01 AM in C++ Programming
I think I fixed the issue I had. Here is what I did in the header:
answered Jun 15 '19 at 09:06 PM
Check your BeginPlay function and constructor in both the code and the blueprint, it's likely being overwritten in one of those. If thatS not the case try changing EditAnywhere to EditDefaultsOnly
answered Jun 15 '19 at 05:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here