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

Add a null check to TMPro sprite asset material checking #176

Closed Oskiii closed 5 years ago

Oskiii commented 5 years ago

If the Sprite Asset has not been set in TMPro settings, there is an error which prevents UIEffect from drawing its TMPro warning. This pull request adds a null-check to prevent such error.

Reproducing bug:

mob-sakai commented 5 years ago

Hi @Oskiii Thank you for your PR!