Rainbow Folders - Custom folder icons in the project browser? Easy!


[Asset Store] [Documentation]

Have you ever thought about highlighting often used project folders? This simple but colorful asset allows you to do that!

With Rainbow Folders, you can set a custom icon and background for any folder in Unity project browser.

Just hold the Alt key and click on any of your folders. A configuration dialog will appear, and you’ll be able to assign a custom icon and background for it, your own one or chose from dozens of presets!

Features:

  • Change icon and background for any folder in the Project window.

  • Change icon or background for multiple folders at once

  • Apply custom icon and background for all subfolders automatically

  • Optional row shading and project tree outlines

  • More than 70 pre-made icons included

  • Supports Unity Collaborate overlay

  • Supports Unity Version Control overlay

  • Source code included

Screenshots:
Screenshots

Changelog:
Changelog

v2.0

  • Folder icons are now actually replaced instead of drawing them on top of default ones
  • All included icons now are baked into the code and will no longer bother you when picking/searching your own textures
  • Added optional project tree outlines
  • Added optional row shadingAdded “transparent” folder icons
  • Improved compatibility with Unity 2018.3 and Unity 2019.1
  • Fixed bug with wrong icons offset when fully zoomed out in “Two Column” mode

v0.9.3

  • Better compatibility with Unity 2018.2
  • A number of small optimizations and fixes

v0.9.2

  • Fixed bug with missing EditorWindow when building player

v0.9.1

  • Fixed bug with possible conflicts with existing AssemblyInfo attributes from other assets

  • Fixed typo for a crimson color name in the various context menus

v0.9

  • Added option to apply custom backgrounds for folder names

  • Added 24 background presets

  • Better compatibility with Unity 2017.2

v0.8.1

  • Compatibility fix For Unity 2017.1

  • Fixed bug with Unity Collaborate overlay when icons scale changed

  • Fixed bug with Unity Version Control overlay when icons scale changed

v0.8

  • All icons have been completely reworked
  • Added 12 new folder colors
  • Added 12 new folder tags
  • Added 3 new folder types (Animations, Physics, and Flares)
  • Fixed bug when the Rainbow Folders menu item appeared on top of the context menu
  • Fixed bug with applying icons recursively by name, when root icon didn’t appear correctly

v0.7.1

  • Added support for Unity Version Control Overlay (beta)

v0.7

  • Added option to change modifier key for the configuration dialog
  • Added support for Unity Collaborate (beta)
  • Install “Rainbow Folders” to the Plugins folder by default
  • Compatibility fix For Unity 5.6.0 beta

v0.6

  • Added option to apply custom icon for all subfolders automatically
  • Compatibility fix For Unity 5.4.4

v0.5.1

  • Added back the context menu, according to numerous requests
  • New platform icons (Android, iOS, Mac, WebGL, Windows)
  • Minor bugfixes

v0.5

  • Improved workflow: change icons with alt-click on a folder, right in the project view.
  • Added possibility to change icons for multiple folders at once
  • Added option to move “Rainbow Folders” wherever you want in your project
  • Got rid of the “Editor Default Resources” folder.
  • Fixed the “Scripts” icon appearance for the dark theme
  • Minor bugfixes

v0.3

  • Apply color “tags” for folders from context menu
  • Support for colorizing/tagging folders from left column view when in two-column layout
  • Support for batch colorizing/tagging folders (select multiple folders and colorize/tag from context menu)
  • Now keeping all settings assets in Editor Default Resources folder so they are not included in a build.
  • Changed namespace for Rotorz reorderable list, to avoid conflicts with existing installs of Rotorz plugins
  • Fixed error messages in Unity 5.0.4x when loading settings
  • New icons (Fonts, Shaders, Terrains, Meshes)
  • New icons from community

v0.2.1

  • Few more icons added
  • Folder structure simplified
  • Minor bugfixes
  • Docs updated

We would appreciate if you’ll rate it and leave feedback. Thank you!

5 Likes

Greetings,

I have a question regarding your tool. Is there an API that can be use to modify folder colors at Editor time (in an EditorWindow) for instance?

Thanks

Hi @ForceMagic ,

I’m not sure I understand your question, but the general answer is “No” - Unity doesn’t have any API to manipulate with folder icons. This asset uses a tricky workaround and draws custom icons just over default ones.

I meant, can I use your tool in my own Editor Window to change a folder color. So I’d need some sort of API that you might have written to change the color without using the UI (Right click etc…)

Something like

RainbowColor.SetFolderColor(myFolder, aColor);

Well, it doesn’t work in that way, this asset does NOT change colors for folders, it draws custom icons over default ones in project view.

If you want to change custom icons from code, you need to look at RainbowFoldersSettings.cs. It’s a typical scriptable object that contains the list of RainbowFolder.cs items, which determine icons for what folders should be overdrawn.

Understood, thanks a lot for your explanation and your time.

Just to note that I included RainbowFolders in my project and I was able to use it as I wanted inside a custom Editor script that I wrote.

So it is possible to set folder color with RainbowFolders API.

            var folderIcons = FolderColorsStorage.Instance.GetIconsByColor(FolderColors.Green);

            // Note that relative path must use Forward Slash!
            RainbowFoldersSettings.Instance.ChangeFolderIconsByPath(relativePath, folderIcons);
1 Like

The new version of the “Rainbow Folders” with compatibility fix for Unity 5.5 now submitted for review to the Asset Store.

Meanwhile, you can download it here:

Could you use a Editor/Resources folder or something instead of EditorDefaultResources, which needs to be at the root level?

@iivo_k ,

Unfortunately, assets from Editor/Resources folder are NOT stripped from player builds and will be packaged with your game files. In order to avoid this we use the “Editor Default Resources” folders.

@PhannGor I would love to see more colours added to the available list. Black, White.

Also what about more folder types?

  • Animation
  • Images
  • Assets
1 Like

The Editor Default Resources folder makes it unusable for us though. :confused: The new Unity PostProcessing project also had this problem but they changed stuff and fixed it. I think they’re now just loading the assets by providing the paths. I’m just hoping there is some other way than to use the Editor Default Resources folder.

1 Like

Agree that using Editor Default Resources isn’t the best approach. Definitely will look for alternatives when I have some free time.

Meanwhile, it’s open soruce, so don’t hesitate to send me your pull requests on GitHub if you’ll figure it out faster :wink:

Hi.

I just tried to use RF in my current project but I’m also using the new unity collab function. The later works lite github and ad visual tags to folders dpending on their updated status. When using RF it overrides the collab display. I hope this won’t be to much trouble to solve.

Thanks again for the asset.

1 Like

Hi @Marc-Saubion ,

Didn’t use unity collaboration functionality yet, definitely need to give it a try. Unfortunately, there is no clean API to draw custom icons in the project browser, so RF just draws custom icons over default ones (and probably collab tags).

Will try to find workaround for this, but no promises about terms. Could you please create the issue on GitHub also?

Good news guys! I got rid of the “Editor Default Resources”. Now you can freely move “Rainbow Folders” wherever you want, just specify its location in Preferences.

You can get the new version from development branch right now, or from asset store a bit later.

1 Like

Hi,

I love Rainbow Folders, but the last ALT+CLICK update made it completely unusable to me. In general, a rule when developing assets is to never rely exclusively on keyboard shortcuts, since there might be other assets that eat them. In my case, ProBuilder is eating the ALT key, and thus I have no way to change icons with Rainbow Folders. Please implement a right-click context menu too, I can’t live without Rainbow Folders :slight_smile:

Cheers,
Daniele,

P.S. Also added this as an issue on github

2 Likes

P.P.S. Found a way to edit folders in the meantime, but directly editing the RainbowFolderSettings scriptableObject :slight_smile:

Hi Daniele,

Thanks for pointing this out. Will fix as soon as possible!

1 Like