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 Text DissolveEffect not update #190

Closed Goncharuk-Nikita closed 4 years ago

Goncharuk-Nikita commented 4 years ago

Hi, I applied Dissolve effect to 3d text mesh pro and changing effectFactor from script and nothing happens until I manually edit something in the script in the inspector, then the effect is updated and then my effectFactor changes from script works.

This are the screenshots, that the effectFactor not updated correctly. The effectFactor set to zero from script, but it not applied: image

Goncharuk-Nikita commented 4 years ago

Oh, I found why it is happens. In the Awake method of my script i set textMP.enableCulling = true. I transfered this from Awake to Start method and it works :)