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.57k stars 770 forks source link

Use multiple ui elements with same shiney effect #239

Open omid3098 opened 3 years ago

omid3098 commented 3 years ago

Is there any way to make a single shiny effect to work on multiple ui items? I have an ui stack with multiple elements inside: image

And I need to make the whole package to have shiny effect instead of adding separate effects on each one of them.

foldthirteen commented 3 years ago

You could create a single transparent sprite the same shape as your grouped object and use that...?

omid3098 commented 3 years ago

No, It's not the best solution for this case. Sometimes my UI elements will have different sizes based on screen size, and it's not possible to use a single pre-baked sprite for that. and the other problem would be having animated numbers under baked sprite.

foldthirteen commented 3 years ago

If your UI elements are dynamically adjusting to the screen size - you can make a single sprite that adjusts using the same ruleset. Keep your original sprites, just have a new rect that expands to fit the same view...