Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

TextMesh Pro [2023.2] Latest Development on TextMesh Pro

Discussion in 'UGUI & TextMesh Pro' started by HugoBD-Unity, May 9, 2023.

  1. afshin_a_1

    afshin_a_1

    Joined:
    Apr 26, 2015
    Posts:
    54
    not just arabic and hebrew, but also persian, urdu etc... you are right. any other graphic softwares i've used officially support this. adobe after effects, blender, unreal engine, Autodesk Maya... i don't know why unity still doesn't support this after all these years. the only chance of using right to left languages is to use a plug-in name RTLTMP that has been closed and the latest editor support is 2021. The community of right to left writers are disappointed and @Stephan_B doesn't seem interested in doing so, maybe because managers have not included support of Arabic, Farsi... in TODO list.
     
    hessel_mm and matheus_inmotionvr like this.
  2. Unifikation

    Unifikation

    Joined:
    Jan 4, 2023
    Posts:
    1,094
    Stephen has left the building. Long ago.
     
  3. qq294716498

    qq294716498

    Joined:
    Jun 20, 2017
    Posts:
    5
    =================================================================
    Native Crash Reporting
    =================================================================
    Got a UNKNOWN while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================

    =================================================================
    Managed Stacktrace:
    =================================================================
    at <unknown> <0xffffffff>
    at UnityEngine.TextCore.LowLevel.FontEngine
    opulatePairAdjustmentRecordMarshallingArray_Injected <0x0006c>
    at UnityEngine.TextCore.LowLevel.FontEngine
    opulatePairAdjustmentRecordMarshallingArray <0x000f2>
    at UnityEngine.TextCore.LowLevel.FontEngine:GetPairAdjustmentRecords <0x00042>
    at UnityEngine.TextCore.LowLevel.FontEngine:GetPairAdjustmentRecords <0x0004a>
    at TMPro.TMP_FontAsset:UpdateGlyphAdjustmentRecords <0x0004a>
    at TMPro.TMP_FontAsset:UpdateGPOSFontFeaturesForNewlyAddedGlyphs <0x00022>
    at TMPro.TMP_FontAsset:UpdateFontFeaturesForFontAssetsInQueue <0x0006a>
    at TMPro.TMP_FontAsset:UpdateFontAssetsInUpdateQueue <0x0002a>
    at TMPro.TextMeshProUGUI:OnPreRenderCanvas <0x00172>
    at TMPro.TextMeshProUGUI:Rebuild <0x000da>
    at UnityEngine.UI.CanvasUpdateRegistryerformUpdate <0x00580>
    at <Module>:invoke_void <0x000a1>
    at UnityEngine.Canvas:SendWillRenderCanvases <0x0002b>
    at System.Object:runtime_invoke_void <0x0007c>
    =================================================================
    Shut down.





    F = new Font(path);
    fontAsset = TMP_FontAsset.CreateFontAsset(F, 90, 9, UnityEngine.TextCore.LowLevel.GlyphRenderMode.SDFAA, 512, 512, AtlasPopulationMode.Dynamic);

    var IFd = Obj.GetComponent<TMP_InputField>();

    IFd.fontAsset = fontAsset;


    so Boom
     
  4. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,285
    Does this mean the inspector help links (?) will actually work now and go to a page for TMP_InputField etc.? :rolleyes:

    Really waiting for fixes to the poorly aligned small text though...
     
  5. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,487
    after install unity 6 preview 6000.0.1f1, text mesh pro does not installed and result bunch of errors at upgraded my game project.

    How to install textmesh pro?
     
  6. HugoBD-Unity

    HugoBD-Unity

    Unity Technologies

    Joined:
    May 14, 2018
    Posts:
    503
    @leegod in U6, TMP has been merged with uGUI. You should see com.unity.ugui@2.0.0 installed.
     
  7. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,958
    It doesn't really get auto installed though, you need to do it manually.
     
  8. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,487
    I dont know exact reason why but when I upgrade my project from 6000.0.0f1 to 6000.0.1f1, some error popup says there is error, I neglected it, and then a bunch of tm pro errors occured, so I deleted Library folder and then upgrade project again, then it succeeded upgraded and no errors now.
     
  9. leegod

    leegod

    Joined:
    May 5, 2010
    Posts:
    2,487
    How to do it manually? I can't find anywhere Textmesh pro package exist on package manager window. And I can't find UPM install method (install via Git, install by name) too on googling.
     
  10. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,958
    You need to add the ugui package, TMPro no longer exists on its own.
     
  11. Jonathan-Westfall-8Bits

    Jonathan-Westfall-8Bits

    Joined:
    Sep 17, 2013
    Posts:
    289
    That sounds like a bug than. On previous versions during Unity 6 betas it has always auto installed for my projects when upgrading. There was some new changes to the package manager. Don't want to create a red herring of searching in the wrong places to fix it, but could be an issue there.

    Unity I did notice some of the time didn't uninstall TMP, but still installed UGUI 2.0 early on. Haven't update any project after Unity 10 Beta, because I already had test projects in earlier Unity 6 versions, so not sure if that was fixed or broken more after that point.
     
  12. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,958
    It has never worked for me and I've tried at multiple points. Could be project specific. I only have UGUI installed as a dependency to TMPro, I don't have it installed on its own.
     
  13. Jonathan-Westfall-8Bits

    Jonathan-Westfall-8Bits

    Joined:
    Sep 17, 2013
    Posts:
    289
    This might be a far fetched question, but do you remember what version of Unity you tried updating from to the newer versions? Wondering there is one version that was missed for converting over.
     
  14. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,958
    Yeah, I'm going from 2021LTS (whatever was the latest at each time) to 6.
     
  15. Jonathan-Westfall-8Bits

    Jonathan-Westfall-8Bits

    Joined:
    Sep 17, 2013
    Posts:
    289
    Okay, sorry I have no information on that than. The oldest versions I tried updating from was Unity 2022 LTS.
    Kind of want to try a fun experiment than. Wonder if making a new project in 2021 LTS than updating it to Unity 2023.1, the newest version of Unity before the TMP merge into UGUI 2.0, than updating to Unity 6 has any different outcome.
     
  16. RageAgainstThePixel

    RageAgainstThePixel

    Joined:
    Mar 11, 2020
    Posts:
    67
    Does this mean we won't ever have to import "essentials" for every new project we make?
     
  17. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,958
    It does not.
     
    RageAgainstThePixel likes this.
  18. WorldBuilderMaster

    WorldBuilderMaster

    Joined:
    Jun 15, 2020
    Posts:
    4
    Do not do this:( Is a bad idea