Custom icons for custom Monobehaviours in custom namespaces

Hi!

As answered here correctly, you can add custom icons for your Monobehaviours by putting an appropriately named icon in the “Assets/Gizmos” folder of your project. This works fine, until I try to do that for classes that belong to a custom namespace. I tried naming the icon “namespace.classname icon”, but that didn’t work. Does anybody here have an idea? Not using namespaces is out of the question, because I really don’t want to have prefixes in my classnames, or have the classnames “float around” the users classes.

Thanks!

Looks like you can place the icon in a subfolder structure matching your namespaces (at least with Unity 4.7). For example place the icon for

namespace FancySoft.Common {
    public class MagicScript : MonoBehaviour {
    }
}

in Assets\Gizmos\FancySoft\Commonand name it (as usual) MagicScript icon.png.