Skip to content

Unreal Engine 5.2 build fix#2

Open
LordYorth wants to merge 3 commits intobenui-dev:masterfrom
LordYorth:master
Open

Unreal Engine 5.2 build fix#2
LordYorth wants to merge 3 commits intobenui-dev:masterfrom
LordYorth:master

Conversation

@LordYorth
Copy link

Had an error while trying to build it for Unreal Engine 5.2.
Managed to make it work like that.
Still new at this let me know if it's not a good solution.

@LordYorth
Copy link
Author

ImGuiImplementation.ccp and ImGuiModuleSettings.h is from sinbad

{
const FSlateRenderTransform ScreenToWidget = MyGeometry.GetAccumulatedRenderTransform().Inverse();
const FVector2D DragDelta = ScreenToWidget.TransformVector(DragDropEvent.GetScreenSpacePosition() - Operation->StartPosition);
const FVector2D DragDelta = static_cast<FVector2D>(ScreenToWidget.TransformVector(DragDropEvent.GetScreenSpacePosition() - Operation->StartPosition));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think FVector2D() is probably a bit clearer, and functionally equivalent to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants