Skip to content

Characters are not displayed if textmeshpro object is enabled at scale 0 and then scaled up #59

@Clap35

Description

@Clap35

Describe the bug
If a tmpanimator is on a gameobject that is enabled at 0, 0, 0 scale and then scaled up using a tween, the characters are not displayed, only their bounding box.

To Reproduce
Steps to reproduce the behavior:
1/ Create a UI TMP text
2/ Reference it in a script and call this example function :
void HideAndShow() { text.transform.localScale = Vector3.zero; text.text = "<wave> HEY HOOO </wave> Non Wavy"; text.transform.DOScale(1f, 0.3f).SetEase(Ease.InOutCubic); }
The characters that are animated are not displayed
Image

If instead of zero, you pick another non-one scale, the characters are displayed in low resolution. If you remove the tmpanimator script, the characters are displayed properly.

Image

Expected behavior
The characters should be displayed properly
Image

Unity:
Unity 2022.3.59f1 (it seems to be fixed in Unity 6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions