Evelyn GameDev Logo
Published on

Glitter Rare item effect [Unity / Particle System]

Authors
  • avatar
    Evelyn
Glitter Rare item effect [Unity / Particle System]

Please share this article if you like!

Welcome to Evelyn GameDev Blog!! In this article, together we'll use Unity's Particle System to create effects that will make in-game items look more attractive!

If you read all the way to the end, you will end up with an effect like the one in the image below.

demo

It is also explained in a Youtube video, so please check the video as well if the text information is not sufficient in some areas. If you like it, please subscribe to my channel.

Let's get started!!

Table of Contents

import image files

The first step is to download the necessary image files. Please click on the link below to proceed with the download.

You can download them for free, but if you are a very kind soul, a little tip would be appreciated.

Download links for image files
ko-fi shop page

Enter your email address and name, and click the Check out button.

checkout

You will be able to download the image file and save it to a location of your choice.

download

Import the downloaded image file by dragging and dropping it into your Unity project.

import

Create an Image for the UI and display the image of the treasure chest in the center of the screen.

tresure box image

Set the Render Mode of the Canvas to Screen Space - Camera.

Furthermore, by assigning Main Camera to Render Camera, the particle system on the UI will be reflected in the camera.

Canvas setting

Set the background of the camera to black so that you can easily see the effect.

solid color black

Now the images is ready.

create materials

Next, let's create materials.

Create materials for the three images you have imported. Select Mobile > Particles > Alpha Blended for all shaders.

materials

create effects

Now it is time to create the effect.

Right-click on the game object that displays the treasure chest image, and create a Particle System as a child element.

Then change the following parts of the main module

  • Start Lifetime: 1
  • Start Speed: 0
  • Start Size: 4
main module of 1st particle sysmmte

After that, change the Rate over Time of Emission to 1.

Then turn off Shape and enable Size over Lifetime to draw a curve like the image.

emission and shape and Size over Lifetime of 1st particle sysmmte

Change the Renderer's Material to Rainbow, and the first Particle System is complete.

Renderer of 1st particle sysmmte

Copy the Particle System that you just created and paste it as a child element.

copy and paste as child

Change the Start Size to 5.

main module of 2nd particle sysmmte

I changed the Renderer's Material to Ring, and the second Particle System was created.

You can see that a circular line has been added to the center circle.

renderer of 2nd particle sysmmte

Create a new Particle System as a child element of the first Particle System created.

create 3rd particle system

Then change the following parameters in the main module

  • Start Lifetime: 5
  • Start Speed: 0
  • Start Size: 2 ~ 5
  • Start Rotation: -360 ~ 360
main module of 3rd particle system

In addition, make the following changes

  • Shape: off
  • Size over Lifetime: larger on the left, smaller on the right
  • angular velocity of Rotation over Lifetime: -360 ~ 360
shape and Size over Lifetime and Rotation over Lifetime of 3rd particle system

Then change the material to Twinkle.

renderer of 3rd particle system

Finally, we will create the final Particle System.

create 4th particle system

Then change the following parameters in the main module

  • Start Lifetime: 0.5
  • Start Speed: 2
  • Start Size: 0.3 ~ 0.8
  • Start Rotation: 0 ~ 360
main module of 4th particle system

In addition, the following changes will be added.

  • Rate over Time of Emission: 100
  • Shape: Sphere
Emission and Shape of 4th particle system

Then enable Size over Lifetime and change the values so that the values on the left are larger and the values on the right are smaller.

Emission and Shape of 4th particle system

Finally, change the Renderer material to Twinkle.

renderer of 4th particle system

This completes the process.

Summary of this article

After working up to this point, you should see something like the following.

demo

Items are the elements that fill the user's heart in a game, so you want to make sure that rare items look especially attractive.

icon of Evelyn
Thank you for reading to the end. I hope I've contributed to your game development life.

Please share this article if you like!