Published on

Creating a Magic Circle Effect with Unity's Particle System

Authors
  • Evelyn

Please share this article if you like!

Welcome to Evelyn GameDev Blog! Effects related to magic are very useful in games. In this article, I will show you how to create a magic circle effect .

If you read this article to the end, you will be able to create the following effect.

The video also explains the content of this blog post, so if there are parts that are not clear from the text information alone, please watch the video as well.

Now let's create the effect!

Table of Contents

Creating a Material

The first step is to create a material. Import the image files needed for the material into UnityProject. The image files are available for free download from the link below, so please use them.

Click here to download the image

To reduce the file size at project build time, set the Max Size of the image file to be small.

Create a new material and change the shader. Set the shader to Mobile > Particles > Additive and drag and drop the image.

Now that the material creation is complete, let's create the effect.

Creating Effects

Create a new Particle System on the Hierarchy.

Change the following parameters

  • Start Lifetime : 1
  • Start Speed : 0
  • Start Size : 7
  • Start Color : Red
  • Rate over Time(Emission) : 1

Next, change the Shape and Size over Lifetime.

  • Shape : Inactivation
  • Size over Lifetime : Enable Size over Lifetime and increase the value on the left. Add a curve so that the size of the effect changes with time.

We will further change the value of Renderer.

  • Render Mode : Horizontal Billboard
  • Sorting Fudgge : 100
  • Max Particle Size : 3

Copy the Particle System that we just created and Paste as child.

We will add and adjust parameters based on the parent Particle System.

  • Start Size : 2
  • Start Color : pale red

Deactivate Size over Lifetime so that it does not change in size.

Attach the first material you created to this effect.

Activate Rotation over Lifetime and change the parameters.

  • Angular Velocity : 720

We will also create a new Particle System as a child element. Then, let's adjust the parameters.

Change the following parameters

  • Start Lifetime : 1
  • Start Speed : 1 ~ 2
  • Start Size : 0.05
  • Start Color : Pale Red

Adjust the following parameters for Emission and Shape.

  • Rate over Time(Emission) : 500
  • Radius(Shape) : 0.8
  • Radius Thickkness(Shape) : 0.5

Activate Size over Lifetime to increase the value on the left and decrease the value on the right.

Activate Size over Lifetime to increase the value on the left and decrease the value on the right.

With the above work, the magic circle effect is now complete.

summary

What did you think? Were you able to create the effects well?

I would be happy if I could contribute to your ga me development even a little.

Let's incorporate magic circle effects into our games!

Please share this article if you like!