The result of changing the Visibility of a widget placed as a child of RetainerBox is not reflected. Here we have disabled hittest for the Button widget, but hittest is incorrectly accepted. This issue occurs in UE5.5 and later, and worked correctly as expected in UE5.4.
A similar issue was addressed in UE5.4 in [Link Removed] and has been corrected to propagate the Visibility of RetainerBox itself.
1. Create an empty project
2. Create a widget blueprint and add the following placement widget
[Widget Root]
- RetainerBox
- Button
3. Add SetVisibility node to Event Construct
Change Button's Visibility to "Not Hit-Testable(Self&AllChildren)"
4. Add the widget created in step 2 by CreateWidget and AddToViewport
5. Click on the Button
Result:
Button's Hit is valid and can be clicked.
Expected:
Button's Hit is invalid and cannot be clicked.
How does TextureRenderTarget2D get TArray<uint8> type data?
How do I set a material as a post-processing material?
Why does the REMOVE method of map container remove elements have memory leaks?
What is the difference between Camera and CineCamera?
Why does the volume fog disappear from a distant view?
How to convert the datasmith scene file to BluePrint. Create animations in BluePrint.
Why are there still collisions when the actor is hidden in the scene?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-240472 in the post.
2 |
Component | UE - Editor - UI Systems - UMG |
---|---|
Affects Versions | 5.5 |
Target Fix | 5.7 |
Created | Jan 28, 2025 |
---|---|
Updated | Jan 30, 2025 |