If you’re building your own custom actors and components in Unreal Engine 4, then at some point you’ll want to give them a nice icon instead of the default generic one. It’s actually pretty easy to do, but it took me quite a bit of digging since I couldn’t find a ready-made guide. It boils down to the following:
- Create a SlateStyleSet
- Set its ContentRoot and CoreContentRoot properly
- Register SlateImageBrushes for your actor or component
- Register your SlateStyleSet
- Register your SlateStyleSet as an icon source