Unity2d particle effects

foreword

I just took the time to write some simple 2d particle effects, and if I come across new and good 2d effects later, I will continue to add them.

If you want to know about 3d particle effects, you can read another article I wrote before:
unity 3d achieves particle effects of rain, fog, fireflies and sparks

first look at the effect

insert image description here
insert image description here
insert image description here

1. 2d platform rain

1. Configuration

insert image description here
insert image description here

2. Image material

I also share the raindrop picture below (the picture is white, you may not see it, just click to download)

Raindrop map starts
Please add a picture description
Raindrop map ends

3. Final effect

insert image description here

2. Footstep dust effect

1. Configuration

insert image description here

insert image description here

2. Code call

public ParticleSystem playerPS;

void PPs()//灰尘粒子
{
    
    
	playerPS.Play();
}

3. Effect

insert image description here

3. Injured Blood Splatter Effect

1. Configuration

insert image description here

insert image description here

2. Effect

insert image description here

to be continued

4. Project source code

The source code of this project has been uploaded to GtyCode, interested students can download and learn by themselves.
Address: 后面有空我会上传上来
Note: The Unity version I am using: Unity 2021.1.7f1c1 (64-bit).

5. Reference

[Video] Explanation of footnotes

Six, finished

Well, I am Xiang Yu, https://xiangyu.blog.csdn.net/

A developer who worked silently in a small company, out of interest, began to study unity by himself. Recently, I created a new column【你问我答】, mainly to collect questions from everyone. Sometimes a question may not be clear in a few words, and I will answer it in the form of an article. Although I may not necessarily know some problems, I will check the information of various parties and try to give the best advice. I hope to help more people who want to learn programming. Let's encourage each other~

I know that you are a master whoring, but if I say there is a reward button below, how should you respond?
(Do what you can, although the strength is small, the heart is warm, your support is the biggest motivation for my creation)

Guess you like

Origin blog.csdn.net/qq_36303853/article/details/131115757