Normal view

There are new articles available, click to refresh the page.
Before yesterdayUnity Forum

Setting custom icon for file extensions using ScriptedImporter

The ScriptedImporter class is a welcome change. However, I'd like to have assets with a particular extension to have an associated icon - instead of the default Unity3D one. Is that possible?

It would be nice to have that wrapped into the ScriptedImporter attribute similar to this ...

Code (CSharp):
  1. // Custom importer for *.foo files
  2. [ScriptedImporter(1, "foo", "Assets/Path/To/Foo/Icon.png")]
  3. public class FooImporter : ScriptedImporter
  4. {
  5.     // Importer details ...
  6. }
❌
❌