Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Default settings always loaded from Resources, causing asset duplication with addressables

Discussion in 'UGUI & TextMesh Pro' started by einWikinger, Jun 13, 2022.

  1. einWikinger

    einWikinger

    Joined:
    Jul 30, 2013
    Posts:
    97
    The way the default settings object is loaded at runtime causes asset duplication when using Addressables to bundle font assets.
    This happens because the font assets are once loaded into memory when loaded through references coming from the settings object and once through components that reference the fonts that are bundled.

    A way to customize how the default settings object is loaded at runtime would already help, or to allow setting up the default settings object global instance.

    A workaround is to eliminate all asset references from the default settings object (i.e. default font, sprites, ...) which is not very practicable in the editor.