Creating a Particle System that displays in the UI

Now that we have the animations set up, we can create a particle system that will "pop" when the chest opens up. As stated in the text, my two preferred ways of displaying particles in front of UI are to either use Screen Space - Camera as the Canvas Render Mode or to use a Render Texture. Since the second option is more complicated, it merits an example. You'll notice that our Canvases all have their Render Modes set to Screen Space - Overlay, so using a Render Texture is the best method for the way the project is currently set up.

We will create a particle system that is rendered to a texture via a second camera and then have that texture displayed on a Raw Image within the UI.

To create ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.