From 74dd32b2270c115f52a3956de3e163bb84e900e6 Mon Sep 17 00:00:00 2001 From: ScottKane Date: Mon, 9 Jan 2023 12:45:21 +0000 Subject: [PATCH] Fix compilation error in UE5.1 Compilation is failing because `FEditorStyle` doesn't exist, adding `#include "EditorStyleSet.h"` would fix this but as it's been deprecated switching to `FAppStyle.GetBrush()` seems to be the sensible option. --- RustPlugin/Source/RustPlugin/Private/RustProperty.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RustPlugin/Source/RustPlugin/Private/RustProperty.cpp b/RustPlugin/Source/RustPlugin/Private/RustProperty.cpp index 11ee6b7..1f92df1 100644 --- a/RustPlugin/Source/RustPlugin/Private/RustProperty.cpp +++ b/RustPlugin/Source/RustPlugin/Private/RustProperty.cpp @@ -147,7 +147,7 @@ void FDynamicRustComponent::Render(TSharedRef MapHandle, IDetai .ContentPadding(0) [ SNew(SImage) - .Image(FEditorStyle::GetBrush("Icons.Delete")) + .Image(FAppStyle::GetBrush("Icons.Delete")) .ColorAndOpacity(FSlateColor::UseForeground()) ] ]