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

TMPro does not load Material Preset properly when using addressables

Discussion in 'UGUI & TextMesh Pro' started by andre_unity573, Aug 4, 2020.

  1. andre_unity573

    andre_unity573

    Joined:
    Oct 17, 2018
    Posts:
    34
    Hello there,
    We are currently adapting our project to use Unity's Addressable system. We've encountered some issues here and there during this process, but we are now almost done solving them.
    Recently though we've encountered another one related to the use of TextMeshPro. It seems that when using Bundled Mode as 'Pack Separately', TMPro is not able to properly load the Material Preset. I am attaching a sample project to reproduce this issue.

    The setup of the project is basically:
    - On AssetGroups tab, select the AssetGroups;
    - On the Inspector, set the Bundled Mode to 'Pack Separately';
    - Back on the AssetGroups tab, select 'Build' -> 'Clean Build' -> 'All';
    - Now build the AssetGroups selecting 'Build' -> 'New Build' -> 'Default Build Script';
    - Hit Play on the first scene and load the second one by the button on the screen;

    You'll see that the TMPro textures went missing:
    upload_2020-8-4_18-19-56.png

    Now, if you repeat the steps above but set the Bundled Mode to 'Packed Together' instead, TMPro won't have any missing textures:
    upload_2020-8-4_18-23-19.png

    So is there a reason why TMPro can't load the Preset Textures properly?

    We are using:
    - Unity 2019.4.4f1;
    - TextMeshPro Version 2.1.1;
    - Addressables Version 1.13.1;

    Also, we are posting this both on TMPro forum as in Addressable since we are not sure where may lie the issue.
    Thanks in advance!
     

    Attached Files:

    Last edited: Aug 5, 2020