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.73k stars 787 forks source link

Animation with color changing is not supported? #70

Closed stanislavkaliuk closed 6 years ago

stanislavkaliuk commented 6 years ago

Is this feature enabled in your plugin? I try to change alpha channel of outline/shadow color and it doesn't take effect.

mob-sakai commented 6 years ago

Hi, @stanislavkaliuk.

Do you use UnityEngine.UI.Outline/Shadow component? It is not supported yet, but will be supported soon.

mob-sakai commented 6 years ago

Oh, sorry. I found a bug about this!

mob-sakai commented 6 years ago

I was wrong. "I found a bug" was a misunderstanding.

stanislavkaliuk commented 6 years ago

I tried to modify Shadow color property. And it takes no effect. But changing alpha in color mode works perfectly.

mob-sakai commented 6 years ago

Please tell me the version of Unity and the version of UIEffect. The version of UIEffect is described in CHANGELOG.md or README.md.

stanislavkaliuk commented 6 years ago

I use Unity 2017.4.4f1 and UIEffect v2.4.0

mob-sakai commented 6 years ago

Thank you for information :)

mob-sakai commented 6 years ago

Please test this prefab. Sample.unitypackage.zip

ColorMode: None, Set, Add, Sub ShadowMode: Shadow (10, 10) 5 -29-2018 23-58-49

stanislavkaliuk commented 6 years ago

Working. But I tried to change the value from the script (using coroutines). Try on this image. Set the shadow color as a bell color and change alpha via script from 0 to 1 bell

stanislavkaliuk commented 6 years ago

Yeah, it's working. Sorry for a trouble.

mob-sakai commented 6 years ago

I'm happy to hear that 😄

stanislavkaliuk commented 6 years ago

Have a question. Do you plan to add soft shadows feature?

mob-sakai commented 6 years ago

You can use soft shadow by using blur. Please set as follows.

  1. Set Blur Mode to Fast or Medium or Detail
  2. Set Blur to 0 (for blurring only shadow)
  3. Set Shadow Blur to 1 image