Article directory
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
1. 2d platform rain
1. Configuration
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
Raindrop map ends
3. Final effect
2. Footstep dust effect
1. Configuration
2. Code call
public ParticleSystem playerPS;
void PPs()//灰尘粒子
{
playerPS.Play();
}
3. Effect
3. Injured Blood Splatter Effect
1. Configuration
2. Effect
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)