RenderTransform does not update

Hi!


UImagePointer->RenderTransform.Translation.Set(FMath::RandRange(10, 300), FMath::RandRange(10, 300));

I can log, that this code line gets executed, but actual UMG widget stays in place.

I’ve tried


UImage->UpdateRenderTransform()

, but this one is private, and most likely, irrelevant.

Am I missing somethings? I searched for stuff like ‘SetDirty’, it is not here either. Why my widget is not visually showing any updates?

You should call SetRenderTransform and ignore all public properties on widgets. It’s an artifact of how a lot of UObjects are designed. Always look for setter functions, overtime those public properties will be getting moved into private areas.

Thanks! Would have never figured it out on my own