UIEffect icon indicating copy to clipboard operation
UIEffect copied to clipboard

TMP Pro error

Open buihuuloc opened this issue 5 years ago • 6 comments

Hi @mob-sakai Did you get this issue

Mesh.vertices is too small. The supplied vertex array has less vertices than are referenced by the triangles array.
UnityEngine.Mesh:set_vertices(Vector3[])
TMPro.TextMeshProUGUI:GenerateTextMesh() (at Library/PackageCache/[email protected]/Scripts/Runtime/TMPro_UGUI_Private.cs:4070)
TMPro.TextMeshProUGUI:OnPreRenderCanvas() (at Library/PackageCache/[email protected]/Scripts/Runtime/TMPro_UGUI_Private.cs:1656)
TMPro.TextMeshProUGUI:Rebuild(CanvasUpdate) (at Library/PackageCache/[email protected]/Scripts/Runtime/TextMeshProUGUI.cs:209)
UnityEngine.Canvas:SendWillRenderCanvases()

buihuuloc avatar Jul 11 '19 07:07 buihuuloc

Hi @buihuuloc Hmm, I know a similar issue. https://github.com/mob-sakai/MeshEffectForTextMeshPro/issues/6

Did you use UIShadow component or UIEffect component with AdvancedBlur ?

mob-sakai avatar Jul 11 '19 07:07 mob-sakai

I used UIShadow and UIEffect without AdvanceBlur

buihuuloc avatar Jul 11 '19 10:07 buihuuloc

To be honest, in some cases, UIShadow and AdvancedBlur do not work well with TMPro.

mob-sakai avatar Jul 11 '19 11:07 mob-sakai

Can you use TMpro's features instead?

  • Underlay
  • Outline

mob-sakai avatar Jul 12 '19 06:07 mob-sakai

TMPP Outline is not good as your. I hope you can somehow fix in soon

buihuuloc avatar Jul 12 '19 08:07 buihuuloc

I am having this issue as well. It seems to happen a lot when the TextMeshPro with UIShadow is a child of a gameobject with ContentSizeFitter and a LayoutGroup.

TMP shadow/outline effect doesn't seem to work with bitmap fonts, no that's not an option.

johnrossporter avatar Nov 04 '19 03:11 johnrossporter