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 Text Mesh Pro and 2022.2.0b8

Discussion in 'UGUI & TextMesh Pro' started by MousePods, Sep 21, 2022.

  1. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    772
    Hi,

    I upgraded to the latest 2022 beta and I get this error:

    Library/PackageCache/com.unity.textmeshpro@4.0.0-pre.1/Scripts/Runtime/TMP_Text.cs(2943,35): error CS0029: Cannot implicitly convert type 'uint[]' to 'int[]'

    Also, 4.0.0 has been in pre.1 for about a year. Is there going to be a update soon where it gets released?

    Thanks!
     
  2. iileychen

    iileychen

    Joined:
    Oct 13, 2015
    Posts:
    98
    I'm wondering about this too.
     
  3. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    As per the "Upgrade Note", version 4.0 should only be used by UI Toolkit users who do not want to have a potential duplication of resources between TMP Font Assets and Font Asset (internal type).

    Please read the version important on that package. Again I recommend using version 3.2.0-pre.3.
     
  4. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    772
    Hi,

    I don’t understand. I am a UIToolkit user and I am using 4.0.0 for this reason. I just updated from 2022.1 beta to the latest 2022.2 beta and got the error.

    Is 4.0.0 not compatible with 2022.2?
     
  5. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    In Unity 2021, UI Toolkit was a package. In Unity 2022, UI Toolkit is now part of the Editor where as such and if (and only if) you wish to avoid having to use TMP_FontAssets for TMP and FontAsset for UI Toolkit, then you should use version 4.0.0.

    However, in my opinion, it is not worth going through the process of converting all TMP_FontAssets to the new internal FontAsset format and losing access to source code on those assets just to avoid having to use dedicated assets for TMP and UITK.

    Therefore, I recommend continuing to use version 3.2.0-pre.3 for TMP and when using UITK creating FontAssets.
     
  6. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    772
    Sorry, I am completely confused. I probably am not saying this correctly, my bad =(

    Previous State
    1. I am using 2022.1 beta.
    2. I am using UIToolkit built-in, not the package.
    3. I am using 4.0.0 pre1
    Everything is working perfectly with above.

    Current State
    1. Update to 2022.2 beta.
    2. I get the error in my original post.
    It seems 4.0.0 has an issue with 2022.2 beta. Does this require a bug report or is 4.0.0 not compatible with 2022.2?

    Again, sorry for the confusion :(
     
    Last edited: Sep 22, 2022
  7. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Thank you for the clarification and sorry about the confusion.

    Please do submit a bug report. Independently of the report, I'll take a look on my end and let you know what I find.
     
  8. MousePods

    MousePods

    Joined:
    Jul 19, 2012
    Posts:
    772
    Bug Report for OP Issue: IN-17553

    Bug Report for "Cannot Rename Front Sprites" Issue: IN-17556

    You just have to import TMP 4.0.0 into the 2022.2 beta and the error will show :)

    Thanks!