Search Unity

AssetBundle Includes C# Icons... BUG?

Discussion in 'Asset Bundles' started by srivello, Sep 26, 2018.

  1. srivello


    Jan 16, 2011

    I'm using Unity 2018.2.6f1. I notice the same behaviour in 2017.x and 5.6.x.

    When I follow these "Script Select Icon button" instructions to assign a png icon to a C# file...

    The meta file for the "SampleClass" C# class updates properly to include a dependency for the icon...


    All good.

    I have created a "SampleScriptable" instance from a C# class and that instance shows the icon in the Project Window.

    All good.

    I create a new AssetBundle with the "SampleScriptable". The AssetBundleBrowser shows the dependencies.


    All good.

    However, the "SampleIcon" is included. My use case for such icons is editor only. So I do not want my built game to include such icons and I don't want my built bundles to include such icons.


    Is there a way to prevent the icon from being included in the bundle?

    And/or does this seem to be a Unity bug?