UMG changes to user widgets not updating instances

Hi all! I found a workaround.

TLDR; Event Pre-Construct fixed the problem.


This is my child widget which will be used as “Are you sure?” menu.


Green selected areas are variable and can be changeable on the other widgets.

I added the code below in Event Pre-Construct.

And now it is updated as visually on the other widget.

I used UE 4.26.2. I hope this fixes your problem.

1 Like

Thank you @Occult_Softworks,

I was beginning to get tired about of reloading it all manually by replacing a child widget (control x > v) or restarting the project. After years of encountering this issue I thought, let’s see if someone has a new solution.

Reloading it makes it manageable. Thank you for this. It is the best workaround available.

With kind regards,

Eric

1 Like

I had a similar issue, but the value that should have been updated was null. It was because instances of my class overridden my default value and set it to null. To fix this issue in the property(value) which should be updated in UMG add this

UPROPERTY(NonPIEDuplicateTransient)
int32 MyValue;

As I understand it will keep default data from the default class.
Who wants to read more about it Property Specifiers

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.