Luca3317 / TMPEffects

Easily animate Unity text and apply other effects with custom tags
https://luca3317.dev/tmpeffects
MIT License
248 stars 11 forks source link

Triggering hide animation. #28

Open Akeli0s opened 3 weeks ago

Akeli0s commented 3 weeks ago

Hi, this is a really great plugin for Unity but I'm kinda confused on how to trigger the hide animation like when I press a button, it will hide a text. I'm trying to trigger it using the OnClick event in a button but I can't seem to trigger it.

Luca3317 commented 2 weeks ago

Hey, you should be able to call Hide / HideAll on TMPWriter or TMPAnimator. As long as you dont pass skipHideProcess = true, the hide animation will be played. Lmk if that solved your issue!

Akeli0s commented 2 weeks ago

Heyyyy, I tried what you suggested by calling the HideAll in the TMPWriter in Unity Inspector OnClick event, unfortunately,there's no animation when hiding the text. It just disappears rather abruptly even though there's a <-spread> tag in TMPro.

Luca3317 commented 2 weeks ago

Hmm, can you share a screenshot of your inspector and OnClick code.