Search Unity

(Case 1155776) AssetBundle pulls-in editor assets

Discussion in 'Asset Bundles' started by Peter77, May 19, 2019.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    I have a C# script that uses a script editor icon, as described here:
    https://docs.unity3d.com/Manual/AssigningIcons.html

    This script is then attached to a GameObject and the GameObject is part of a scene. When I mark the scene to be stored in an asset bundle, Unity also pulls in the editor script icon.

    screenshot.png

    Reproduce
    • Open user project
    • Select "MyScript.cs" and notice it uses a custom icon
    • Open Window > AssetBundle Browser
    • Select "scenes_samplescene" in AssetBundle Browser

    Actual
    Observe "myscript icon.png" is pulled into the asset bundle "scenes_samplescene", even though this icon is used inside the editor only.

    Expected
    Editor assets should not get pulled into asset bundles for the player.
     
  2. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    Thanks for the bug report, we definitely have found a few similar cases of editor assets getting pulled into bundles that have been fixed. Will see if it is a similar case that has been fixed or a new case we need to fix.