# Class Icons

**URL:** <https://forums.unrealengine.com/t/class-icons/303037>\
**Category:** C++\
**Tags:** classes, unreal-engine, editor, UE4, CPP, question\
**Created:** [January 5, 2015, 12:15am UTC](https://forums.unrealengine.com/t/class-icons/303037 "2015-01-05T00:15:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![FortuneStudios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FortuneStudios](https://forums.unrealengine.com/u/FortuneStudios)\
**Post date:** [January 5, 2015, 12:15am UTC](https://forums.unrealengine.com/t/class-icons/303037/1 "2015-01-05T00:15:39Z")

</div>

Hey,

Just wondering if there is a way in C++ to create a thumbnail for my class, so if i were to search for them i can see a thumbnail?

Thanks

---

<div class="post-metadata">

**Author:** ![Br\_P\_d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/br_p_d/32/918657_2.png) [@Br\_P\_d](https://forums.unrealengine.com/u/Br_P_d)\
**Post date:** [January 5, 2015, 10:23am UTC](https://forums.unrealengine.com/t/class-icons/303037/2 "2015-01-05T10:23:45Z")

</div>

Hi there!

Currently the only way to achieve this is to make a thumbnail and icon for your class inside Engine/Content/Editor/Slate/Icons/AssetIcons/ with the name of your class (\_16x and \_64x).

You’d then need to add your class name to the AssetTypes[] array inside FSlateEditorStyle::FStyle::SetupClassIconsAndThumbnails() found in Engine\Source\Editor\EditorStyle\Private\SlateEditorStyle.cpp.

Once you’ve done that you should see a custom icon. Unfortunately it’s not a particularly elegant solution, but perhaps we can streamline it in future.

---

<div class="post-metadata">

**Author:** ![FortuneStudios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FortuneStudios](https://forums.unrealengine.com/u/FortuneStudios)\
**Post date:** [January 5, 2015, 11:49am UTC](https://forums.unrealengine.com/t/class-icons/303037/3 "2015-01-05T11:49:58Z")

</div>

Ahh okay, thanks for letting me know 🙂

---

<div class="post-metadata">

**Author:** ![Senscape](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Senscape](https://forums.unrealengine.com/u/Senscape)\
**Post date:** [May 11, 2016, 7:48pm UTC](https://forums.unrealengine.com/t/class-icons/303037/4 "2016-05-11T19:48:02Z")

</div>

I’m wondering if there’s a better solution that doesn’t require modifying the engine code since this answer was posted. Thanks!

---

<div class="post-metadata">

**Author:** ![Br\_P\_d](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/br_p_d/32/918657_2.png) [@Br\_P\_d](https://forums.unrealengine.com/u/Br_P_d)\
**Post date:** [May 12, 2016, 11:42am UTC](https://forums.unrealengine.com/t/class-icons/303037/5 "2016-05-12T11:42:17Z")

</div>

Hey there, you can, if you wish, create your own slate style set for your game/plugin editor which contains a style for “ClassIcon.MyClassName”, and register your style set with FClassIconFinder. This should allow you to define class icons in your plugin without changing any core engine code.

Also, of 4.13 you will no longer need to register your style set with the icon finder - that will happen automatically.

---

<div class="post-metadata">

**Author:** ![Senscape](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Senscape](https://forums.unrealengine.com/u/Senscape)\
**Post date:** [May 12, 2016, 12:48pm UTC](https://forums.unrealengine.com/t/class-icons/303037/6 "2016-05-12T12:48:50Z")

</div>

Perfect! Many thanks.

---

<div class="post-metadata">

**Author:** ![Retro11231](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Retro11231](https://forums.unrealengine.com/u/Retro11231)\
**Post date:** [July 5, 2016, 11:48pm UTC](https://forums.unrealengine.com/t/class-icons/303037/7 "2016-07-05T23:48:41Z")

</div>

To Clarify:

Icon - In editor billboard for actors.

Thumbnail - Content browser icon.

This confused me for a bit because I had set it up for icons until I stepped through and realized it was thumbnails I was after. I am posting this because OP was looking for thumbnails so hopefully this doesn’t catch you up either! =D

---

<div class="post-metadata">

**Author:** ![Rumzie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumzie](https://forums.unrealengine.com/u/Rumzie)\
**Post date:** [October 14, 2024, 3:41pm UTC](https://forums.unrealengine.com/t/class-icons/303037/8 "2024-10-14T15:41:48Z")

</div>

In later versions of the engine (at least 5.0+) no longer requires you use FClassIconFinder.

Instead when you register your slate style with FSlateStyleRegistry::RegisterSlateStyle in your startup module function, this will automatically grab your thumbnail and class icons.
