当前位置:网站首页>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 .
边栏推荐
- 自动化运维利器-Ansible-Playbook
- pip install pyodbc : ERROR: Command errored out with exit status 1
- 学 SQL 必须了解的 10 个高级概念
- EasyRE WriteUp
- 基于LNMP部署flask项目
- 集成开发管理平台
- Distributed (consistency protocol) leader election (dotnext.net.cluster implements raft election)
- Xin'an Second Edition: Chapter 25 mobile application security requirements analysis and security protection engineering learning notes
- Flink analysis (I): basic concept analysis
- Xin'an Second Edition: Chapter 23 cloud computing security requirements analysis and security protection engineering learning notes
猜你喜欢
Uipath browser performs actions in the new tab
Unity粒子特效系列-闪星星的宝箱
07个人研发的产品及推广-人力资源信息管理系统
Zen integration nails, bugs, needs, etc. are reminded by nails
Selenium test of automatic answer runs directly in the browser, just like real users.
PySpark算子处理空间数据全解析(5): 如何在PySpark里面使用空间运算接口
C#版Selenium操作Chrome全屏模式显示(F11)
[ASM] introduction and use of bytecode operation classwriter class
[getting started with MySQL] fourth, explore operators in MySQL with Kiko
PySpark算子处理空间数据全解析(4): 先说说空间运算
随机推荐
Automatic operation and maintenance sharp weapon ansible Playbook
Summary of study notes for 2022 soft exam information security engineer preparation
Kali2021 installation and basic configuration
[introduction to MySQL] third, common data types in MySQL
Guidelines for preparing for the 2022 soft exam information security engineer exam
Establishment of graphical monitoring grafana
Optimization of middle alignment of loading style of device player in easycvr electronic map
Concept and basic knowledge of network layering
PySpark算子处理空间数据全解析(5): 如何在PySpark里面使用空间运算接口
Openharmony developer documentation open source project
Huawei certified cloud computing hica
分布式(一致性协议)之领导人选举( DotNext.Net.Cluster 实现Raft 选举 )
Kernel link script parsing
OpenCV中如何使用滚动条动态调整参数
Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
Xin'an Second Edition: Chapter 25 mobile application security requirements analysis and security protection engineering learning notes
06 products and promotion developed by individuals - code statistical tools
Models used in data warehouse modeling and layered introduction
The solution that flutterweb browser cannot be rolled back after refreshing
Xin'an Second Edition: Chapter 23 cloud computing security requirements analysis and security protection engineering learning notes