mob-sakai / UIEffect

UIEffect is an effect component for uGUI element in Unity. Let's decorate your UI with effects!
https://github.com/mob-sakai/UIEffect
MIT License
5.62k stars 773 forks source link

TMP Pro error #179

Open buihuuloc opened 5 years ago

buihuuloc commented 5 years ago

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/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMPro_UGUI_Private.cs:4070)
TMPro.TextMeshProUGUI:OnPreRenderCanvas() (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TMPro_UGUI_Private.cs:1656)
TMPro.TextMeshProUGUI:Rebuild(CanvasUpdate) (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TextMeshProUGUI.cs:209)
UnityEngine.Canvas:SendWillRenderCanvases()
mob-sakai commented 5 years ago

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 ?

buihuuloc commented 5 years ago

I used UIShadow and UIEffect without AdvanceBlur

mob-sakai commented 5 years ago

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

mob-sakai commented 5 years ago

Can you use TMpro's features instead?

buihuuloc commented 5 years ago

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

johnrossporter commented 4 years ago

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.