Fixed issue with SImGuiLayout blocking mouse input for other Slate widgets, which was introduced by refactorization of widgets (version 1.14, commit c144658f):

- Changed visibility of widgets in ImGui layout from 'Visible' to 'SelfHitTestInvisible'.
This commit is contained in:
Sebastian 2019-05-31 19:58:00 +01:00
parent 4668d5efad
commit 59dc8decf8
3 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,9 @@ Versions marked as 'unofficial' are labelled only for the needs of this changelo
Change History
--------------
Version: 1.16 (2019/05)
- Fixed issue with SImGuiLayout blocking mouse input for other Slate widgets, which was introduced by refactorization of widgets (version 1.14, commit c144658f).
Version: 1.15 (2019/04)
- Added new FImGuiDelegates interface for ImGui debug delegates.
- Added code preserving delegates during hot-reloading and moving them to a new module.

View File

@ -10,6 +10,8 @@ Dear ImGui simplifies and helps with creation of quality visualisation and debug
Status
------
Version: 1.16
ImGui version: 1.65
Supported engine version: 4.22*

View File

@ -26,11 +26,13 @@ void SImGuiLayout::Construct(const FArguments& InArgs)
.IgnoreInheritedScale(true)
.HAlign(HAlign_Fill)
.VAlign(VAlign_Fill)
.Visibility(EVisibility::SelfHitTestInvisible)
[
// Apply custom scale if necessary.
// TODO: Bind to relevant parameter.
SNew(SDPIScaler)
.DPIScale(1.f)
.Visibility(EVisibility::SelfHitTestInvisible)
[
SNew(SConstraintCanvas)
+ SConstraintCanvas::Slot()
@ -51,5 +53,7 @@ void SImGuiLayout::Construct(const FArguments& InArgs)
]
]
];
SetVisibility(EVisibility::SelfHitTestInvisible);
}
END_SLATE_FUNCTION_BUILD_OPTIMIZATION