Slate resources not loading

I am trying to implement a submenu with Slate.

When I run the code the arrow of the submenu is missing and the icons of the submen entries look strange. I am probably missing something, can you maybe give me a hint what that could be? Another problem I have is that the tooltip is behind the submenu. The screenshot shows how it looks. I pasted the relevant code part above (and removed some code that does not contribute)

[Image Removed]

Steps to Reproduce
`#include “MyClass.h”

void MyClass::AddMenuEntry(FMenuBuilder& MenuBuilder)
{
MenuBuilder.AddSubMenu(
FText::FromString(“Submenu”),
FText::FromString(“Tooltip”),
FNewMenuDelegate::CreateRaw(this, &MyClass::FillSubMenu),
true,
FSlateIcon(),
false
);
}

void MyClass::FillSubMenu(FMenuBuilder & MenuBuilder)
{
MenuBuilder.AddMenuEntry(
FText::FromString(“Item 1”),
FText::FromString(“Tooltip”),
FSlateIcon(),
FUIAction(FExecuteAction::CreateLambda(
{
// Action
})),
NAME_None,
EUserInterfaceActionType::ToggleButton
);
MenuBuilder.AddMenuEntry(
FText::FromString(“Item 2”),
FText::FromString(“Tooltip”),
FSlateIcon(),
FUIAction(FExecuteAction::CreateLambda(
{
// Action
})),
NAME_None,
EUserInterfaceActionType::ToggleButton
);
MenuBuilder.AddMenuEntry(
FText::FromString(“Item 3”),
FText::FromString(“Tooltip”),
FSlateIcon(),
FUIAction(FExecuteAction::CreateLambda(
{
// Action
})
}`

Hi Steffen,

What platform(s) are you seeing this on? Is this extension class part of a plugin, or defined in an editor module for your project? If you can attach your editor log file as well, there may be a relevant warning/error on why it’s loading an invalid Slate brush.

Best,

Cody

It is a Windows 11 system and is directly part of the project.

We decided to remove the menu and are now pursuing another approach, so right now I do not need any further assistance and the question can be closed.

But I will definitely watch the Editor logs next time this happens, this is a very good suggestion, thank you.