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

ColorMode setter for UI Effect #195

Closed SlavomirDurej closed 4 years ago

SlavomirDurej commented 4 years ago

Hello, first of all, MANY MANY thanks for your excellent work!

I've got a project that requires a runtime change of Color mode (From Multiply to Add) for the UI Effect component. Unfortunately there's no setter in the UIEffect.cs, I've tried adding : (on line 182) public ColorMode colorMode { get { return m_ColorMode; } set { m_ColorMode = value; GetMaterial(); UpgradeIfNeeded(); } }

but it did not work properly, it showed Add mode in the UI, but actually it was still multiply mode assigned...

Is there a way to do this ? At least maybe some workaround?

mob-sakai commented 4 years ago

Hi @SlavomirDurej

Thank you for using this plugin. :)

The current version (v3) does not support changing color mode on runtime... It will be supported in v4. #185

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 4.0.0-preview.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: