Search Unity

AssetBundle Includes C# Icons... BUG?

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

  1. srivello

    srivello

    Joined:
    Jan 16, 2011
    Posts:
    16
    Hi,

    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...

    https://docs.unity3d.com/2018.1/Documentation/Manual/AssigningIcons.html

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

    test2.png

    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.

    test.png

    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.

    Questions

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

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