当前位置:网站首页>Unity particle special effects series - treasure chest of shining stars
Unity particle special effects series - treasure chest of shining stars
2022-07-06 17:41:00 【sesame seeds】
- Click the jump =>《 Navigation post 》- Unity manual , Systematic practical learning
- Click the jump =>《 Navigation post 》- Android manual , Revisit mobile development
This article is about 2.4 Thousand characters , Novice reading needs 5 minute , Review needs 2 minute 【 Collect at any time, no longer get lost 】
About author
as everyone knows , Life is a long process , constantly overcome difficulties , Constantly reflect on the process of progress . In this process, there will be a lot of questions and thoughts about life , So I decided to put my thinking , Share all your experiences and stories , To find resonance !!!
Focus on Android/Unity And various game development skills , as well as Share various resources ( Website 、 Tools 、 material 、 Source code 、 Games etc. )
If you need anything, welcome me , Communication groups make learning No longer alone .
Practice process
Hello, Hello everyone , I'm Xiao Kong . I'm back again .
Today I will show you a particle effect - Treasure chest effect of twinkling stars , Usually when playing games , There is usually a treasure chest , The treasure chest usually lies quietly in a corner , Add the effect of a twinkling star , To represent the interactive treasure .
We can see from the screenshot above that three different styles of maps are constantly flashing .
Okay , Let's think about our ideas :
- The transparency of particles changes with time , Then we use the color in the life cycle
- It is generated randomly in a region , Instead of a point , The shape must be similar to a box
- The number of three textures is different
I know that , Our implementation is very simple .
We create three particles , Both of these particles contain 【 launch 】【 shape 】【 Life cycle speed 】【 Stress in the life cycle 】【 Life cycle color 】【 Life cycle size 】【 Renderers 】 modular , Another particle system contains only 【 launch 】【 shape 】【 Life cycle color 】【 Life cycle size 】【 Renderers 】 modular .
We modify the starting size to three different intervals , such as 0.05-0.1 and 0.1-0.2, In order to achieve stars of different sizes .
Then modify the number of particles in the emission module , All three are different , As for how much depends on your own effect , Xiao Kong, this setting is 10/20/30.
The speed and force in the life cycle are modified Y Value integer , Indicates upward movement .
As for color , The default is white , But we have to change the transparency Alpha.
In the render , Use three different star texture maps .
need unitypackage I can just ask for your direct private message . Nothing , Nothing .
Be bold , We will have a story !!!
other
author : Xiaokong and Xiaozhi Xiaokong
Reprint note - Be sure to indicate the source :https://zhima.blog.csdn.net/
This Taoist friend, please Step back ️, I watch you Extraordinary bearing , There is a king's domineering spirit in his speech , There will be a great achievement in the future !!! There is give the thumbs-up Collection Today I tell you , Have you ordered it , Your success in the future ️, I don't take a penny , If it doesn't work ️, Or come back to me .
reminder : Click the card below to get more unexpected resources .
边栏推荐
- connection reset by peer
- Automatic operation and maintenance sharp weapon ansible Playbook
- Essai de pénétration du Code à distance - essai du module b
- EasyCVR电子地图中设备播放器loading样式的居中对齐优化
- [reverse primary] Unique
- Flink parsing (III): memory management
- MySQL stored procedure
- DataGridView scroll bar positioning in C WinForm
- Connect to LAN MySQL
- Establishment of graphical monitoring grafana
猜你喜欢
C# NanoFramework 点灯和按键 之 ESP32
Huawei certified cloud computing hica
Yarn: unable to load file d:\programfiles\nodejs\yarn PS1, because running scripts is prohibited on this system
【ASM】字节码操作 ClassWriter 类介绍与使用
BearPi-HM_ Nano development board "flower protector" case
05 personal R & D products and promotion - data synchronization tool
2022年大厂Android面试题汇总(二)(含答案)
Automatic operation and maintenance sharp weapon ansible Foundation
自动化运维利器ansible基础
pip install pyodbc : ERROR: Command errored out with exit status 1
随机推荐
Establishment of graphical monitoring grafana
mysql高级(索引,视图,存储过程,函数,修改密码)
pip install pyodbc : ERROR: Command errored out with exit status 1
Compile and build, from the bottom to the top
Interpretation of Flink source code (I): Interpretation of streamgraph source code
Xin'an Second Edition: Chapter 25 mobile application security requirements analysis and security protection engineering learning notes
Pyspark operator processing spatial data full parsing (5): how to use spatial operation interface in pyspark
Unity粒子特效系列-闪星星的宝箱
Wordcloud colormap color set and custom colors
Integrated development management platform
2022年大厂Android面试题汇总(一)(含答案)
[ciscn 2021 South China]rsa writeup
Automatic operation and maintenance sharp weapon ansible Foundation
EasyCVR平台通过接口编辑通道出现报错“ID不能为空”,是什么原因?
Remote code execution penetration test - B module test
Debug xv6
Flink parsing (IV): recovery mechanism
The art of Engineering
Vscode replaces commas, or specific characters with newlines
微信小程序获取手机号