Custom Icons in Unreal Engine 4

Custom icons in Unreal Engine 4.

It’s the little things that matter.

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

On startup, create and register:

On shutdown, clean up:

One thought on “Custom Icons in Unreal Engine 4

  1. Hi, I’m trying to update my code to use this new register icon stuff as EditorIcon is now deprecated.

    Can I ask for more info about where you add the “startup” code and where you add the “shutdown code”? In the constructor and ReleaseSlateResources? You save StyleSet as a member variable within your custom object?

Leave a Reply