Unity - How to add a custom icon for a Scriptable Object

preview_player
Показать описание
A simple tutorial demonstrating how to add a custom icon to a Scriptable Object instance.

Project source code:

🐦Twitter:

🎮 My unity assets (affiliate link):

✅ Support me on Patreon:

⚙️ My setup (affiliate links) ⚙️

0:00 Intro
0:21 Problem
0:40 Solution
1:19 Result
1:33 Outro
Рекомендации по теме
Комментарии
Автор

So simple but so effective! Never even knew about this feature and with my project reaching critical scriptable object mass this is very helpful!

HipToBeeSquare
Автор

that is great tutorial, straight to the point, sadly i didnt find answer here, i wanted to get different icons with one script.

ignacyn
Автор

thanks for this. out of curiosity, is there a way to add custom icons to the instances themselves? My items are all from the same base script and have their own icon variable in the SO script, but there's no way I know of to display those icons in the items folder itself.

the reason i'm asking is because the items folder is under resources, and the code that uses those items CANNOT have items organized into subfolders so i would need to go through the hundreds of items in my game manually and read the names every time i create a new shop or a loot table list. any help would be awesome!

SuddenlySlanted
visit shbcf.ru