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

UIShiny effect remain on screen after calling Stop() #165

Closed DenL closed 5 years ago

DenL commented 5 years ago

Describe the bug Of the UIShiny effect, if .Stop() is called during the middle of a shiny effect, the image will still have the static shiny effect.

To Reproduce Steps to reproduce the behavior:

  1. Place a UI shiny script on a gameobject with Image
  2. Enter play mode, trigger the shiny effect
  3. Stop() the shiny effect when the "shine" is still visible
  4. The "shine" effect will stop moving and remains on screen

Environment (please complete the following information):

DenL commented 5 years ago

Not sure if this is the intended behavior, but I have been enabling/disabling the uishiny script instead of Play() Stop() to get around this. It will however show a visual glitch upon re-enable.

mob-sakai commented 5 years ago

Hi @DenL Thank you for reporting!

mob-sakai commented 5 years ago

I think we need the following method: