Link UI button to particle effect

Hi. I’m making a 2D make and I need to have particles on top of certain buttons, how could I go about linking these 2 elements so that they stay at the same position always?

Thanks!

Hey, this might help you: GitHub - mob-sakai/UIEffect: UIEffect is an effect component for uGUI element in Unity. Let's decorate your UI with effects!

I have found it in this thread:

Hi! Yeah I found that but didn’t get to trying it. I was in a game jam and needed to find a fast solution so I finally went with a 2D animation with several sprites. Thanks tho!

Hi there,

I created the Canvas Particle System, an asset that can create UI particles fully compatible with Unity’s UI Render Pipeline.

Within this asset you can:

  • Use sibling index to control particles z position
  • Add particles in front, behind, or between any UI element
  • Emit particles from: point, directional, line, rect, and circular or using any recttransform in the scene
  • Works on all canvas types:
  • Works on all platforms: mobile, desktop, or console
  • Control all emitter attributes programmatically
  • Animate any emitter or particle attributes
  • Add multi-texture particles
  • Particles with animates sprites
  • Emit particles from images
  • Use UI masks
  • Emit from local or world spaces
  • Render Shuriken particle on UI
  • And more