Description

There is a mismatch of collision and geometry of WidgetComponent.

This doesn't occur in 4.21. It can only be seen in 4.22.

 

[Workaround]

Change following code in UWidgetComponent::UpdateBodySetup

// const float Width = ComputeComponentWidth();
const float Width = CurrentDrawSize.X;
Steps to Reproduce

[Steps]

  1. Create WidgetBP and add Image.
  2. Create ActorBP and add widget component.
  3. Set WidgetBP for "Widget Class" in ActorBP
  4. Enable "Draw at Desired Size".
  5. Set x=0.0 in "Pivot".
  6. Execute console command "showflag.collision" in Editor.

Then, you can see the collision and geometry mismatch. (See the attached .png)

Even when playing with PIE, real collisions are not consistent.

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-75767 in the post.

0
Login to Vote

Fixed
ComponentTools - UMG
Affects Versions4.22.0
Target Fix4.24
Fix Commit6884731
Main Commit6884731
CreatedJun 6, 2019
ResolvedJun 7, 2019
UpdatedJun 21, 2019