Skip to content

DissolveEffectForTMPro provide dissolve effect component for TextMeshPro in Unity.

License

Notifications You must be signed in to change notification settings

mob-sakai/DissolveEffectForTMPro

Repository files navigation

DissolveEffectForTMPro

NOTE: This project is experimental.

NOTE: This project is a derivative project of MeshEffectForTextMeshPro.

NOTE: This project will be integrated to UIEffect.

DissolveEffectForTMPro provide dissolve effect component for TextMeshPro in Unity.

PRs Welcome

<< Description | WebGL Demo | Download | Usage | Example of using | Development Note | Change log >>

What's new? See changelog

Do you want to receive notifications for new releases? Watch this repo





Description

DissolveEffectForTMPro provide dissolve effect component (from UIEffect) for TextMeshPro in Unity.

It works well not only for standard Graphic components (Image, RawImage, Text, etc.) but also for TextMeshPro and TextMeshProUGUI.

Features

  • Dissolve color, width and softness.
  • Effect area: RectTransform, Fit, Split by character.
  • Support <font> and <sprite> tags.
  • You can control effect properties from script, AnimationClip and inspector.
  • Works well not only for standard Graphic components (Image, RawImage, Text, etc.) but also for TextMeshPro and TextMeshProUGUI.
  • No useless allocation.
  • Easy to set up.





Demo

WebGL Demo





Usage

  1. Download DissolveEffectForTMPro.unitypackage from Releases.
  2. Import the package into your Unity project. Click Import Package > Custom Package from the Assets menu.
  3. Enable TexCoord1 and TexCoord2 channels of canvas.

  4. Add UIDissolve component to TextMeshPro from Add Component in inspector or Component > DissolveEffectForTMPro > UIDissolve menu.
  5. Set dissolvable material preset to the TextMeshPro component. Press the Fix button to generate or set dissolvable material preset.
  6. (Option) Set dissolvable sprite asset to the TextMeshPro component. Press the Fix button to generate or set dissolvable sprite asset.
  7. Adjust the parameters of the effect as you like, in inspector.
  8. Enjoy!
Requirement
  • Unity 5.6+ (including Unity 2019.x)
  • TextMeshPro v1.0.0+





Development Note





License

  • MIT
  • © UTJ/UCL

Author

mob-sakai

See Also