当前位置:网站首页>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 .
边栏推荐
- The art of Engineering (3): do not rely on each other between functions of code robustness
- Flink parsing (III): memory management
- 视频融合云平台EasyCVR增加多级分组,可灵活管理接入设备
- Kali2021 installation and basic configuration
- 07 personal R & D products and promotion - human resources information management system
- FlutterWeb浏览器刷新后无法回退的解决方案
- Virtual machine startup prompt probing EDD (edd=off to disable) error
- FlutterWeb瀏覽器刷新後無法回退的解决方案
- Final review of information and network security (full version)
- 自动化运维利器-Ansible-Playbook
猜你喜欢
EasyCVR接入设备开启音频后,视频无法正常播放是什么原因?
Development and practice of lightweight planning service tools
Flink analysis (II): analysis of backpressure mechanism
07 personal R & D products and promotion - human resources information management system
PySpark算子处理空间数据全解析(4): 先说说空间运算
TCP connection is more than communicating with TCP protocol
Basic configuration and use of spark
关于Selenium启动Chrome浏览器闪退问题
【Elastic】Elastic缺少xpack无法创建模板 unknown setting index.lifecycle.name index.lifecycle.rollover_alias
pip install pyodbc : ERROR: Command errored out with exit status 1
随机推荐
Precipitated database operation class - version C (SQL Server)
Xin'an Second Edition: Chapter 24 industrial control safety demand analysis and safety protection engineering learning notes
About selenium starting Chrome browser flash back
[ASM] introduction and use of bytecode operation classwriter class
【MySQL入门】第四话 · 和kiko一起探索MySQL中的运算符
Openharmony developer documentation open source project
Essai de pénétration du Code à distance - essai du module b
Xin'an Second Edition: Chapter 25 mobile application security requirements analysis and security protection engineering learning notes
C # nanoframework lighting and key esp32
Flink parsing (IV): recovery mechanism
Binary search strategy
Debug and run the first xv6 program
MySQL basic addition, deletion, modification and query of SQL statements
Guidelines for preparing for the 2022 soft exam information security engineer exam
MySQL error reporting solution
connection reset by peer
基于LNMP部署flask项目
C# WinForm系列-Button简单使用
在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
2021-03-22 "display login screen during recovery" can't be canceled. The appearance of lock screen interface leads to the solution that the remotely connected virtual machine can't work normally