Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Package content exported to build even when not used

Discussion in 'Package Manager' started by andyz, Jan 18, 2019.

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,251
    Checking the editor log for a webgl build to see if I can optimise size and to my surprise I see assets from TextMeshPro (package in project, no text actually used due to inferior small-font-rendering quality) and ProBuilder (which should not need any assets for a build I would think).

    TextMeshPro has a font in Resources by default which gets exported, along with shaders & sprites.
    TextMeshPro code is exported also yet I should not reference it so should be stripped.
    Probuilder exports Gridbox pngs (?!) shaders and materials

    Are these bugs or there is no good support to strip unused assets included in packages?
    (Unity 2018.2)