Custom icons for your assets in the content browser

Posting a scoop via @rtm223 again!

image

In the editor module init:

SlateStyle = MakeShareable(new FSlateStyleSet("DTDEditorStyle"));
auto editorStylesDir = FPaths::ProjectDir() + "Resources/EditorStyles/";
SlateStyle->SetContentRoot(editorStylesDir);

SlateStyle->Set("ClassThumbnail.DTDCardActor_Base", new FSlateVectorImageBrush(SlateStyle->RootToContentDir("DTDCardThumbnail_128.svg"), FVector2D(128.0f, 128.0f), FLinearColor(CARD_COLOR)));
SlateStyle->Set("ClassIcon.DTDCardActor_Base", new FSlateVectorImageBrush(SlateStyle->RootToContentDir("DTDCardIcon_16.svg"), FVector2D(16.0f, 16.0f)));

FSlateStyleRegistry::RegisterSlateStyle(*SlateStyle);

So it's just grabbing SVGs (or PNGs) from the resources folder. the class in this case is ADTDCardActor_Base , so ClassThumbnail.DTDCardActor_Base does the thumbnail and ClassIcon.DTDCardActor_Base does the icon which is the little one that shows up here:
image