当前位置:网站首页>Unity technical manual - lifecycle lifetimebyemitterspeed - color in the cycle coloroverlifetime- speed color colorbyspeed
Unity technical manual - lifecycle lifetimebyemitterspeed - color in the cycle coloroverlifetime- speed color colorbyspeed
2022-06-23 10:26: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 3 Thousand characters , Novice reading needs 9 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 .

Premise
This is what Xiao Kong insisted on writing Unity Novice series , Welcome to taste .
Novice (√√√)
bosses (√)
The particle section is a series of articles , And the introduction was very detailed , Suggest Collection .
Practice process
Emitter lifecycle (Lifetime by Emitter Speed) Sub module

Activate this attribute to see the effect when you move the whole particle system object . By default, moving fast produces fewer particles . Like the flame of a candle , The fire will decrease as you move , Stillness and no wind will restore the size of the flame .
Life cycle color (Color Over Lifetime) Sub module


This module is used to control how the color and transparency of particles change in the life cycle , Support double gradient , The particles will randomly take one of the gradients . The left point of the gradient bar indicates the beginning of the particle life , The right side of the gradient bar indicates the end of the particle life .
The color of many types of natural and surreal particles changes over time , So this attribute has many uses . for example , Strong white sparks cool as they pass through the air , Magic may suddenly turn rainbow . But just as important Alpha( transparency ) The change of . Particles burn out when they reach the end of their life cycle 、 Fading or dissipation is a very common phenomenon ( for example , Strong spark 、 Fireworks and smoke particles ), This effect can be achieved by a simple gradient gradient .
Speed color (Color By Speed) Sub module

The module can set the color of particles according to the particle speed ( A unit of distance per second ) change .
Color: The color gradient of particles defined within the speed range .
Speed Range: The lower and upper limits of the speed range to which the color gradient is mapped ( Out of range speeds are mapped to the endpoints of the ramp ).
A burning or luminous particle ( Like a spark ) It burns more brightly when moving rapidly in the air ( for example , When the spark comes into contact with more oxygen ), But as they slow down, they darken slightly . To simulate this , You can use Color By Speed modular , Make the gradient white at the upper limit of the speed range , The lower limit is red ( In the spark example , Faster particles will appear in white , The slower particles are red ).
You can create a new particle system that will be the main module of 【Start Speed】 Set to two numerical ranges, for example 1-10. Then activate the speed color (Color By Speed) modular , Set the speed range to 1-10, Then change the color value , You can see the effect , In actual projects, the speed range of the module is usually the same as 【Start Speed】 The interval range is consistent , You can see the corresponding relationship at a glance , Otherwise, you have to calculate a wave by yourself .
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 .
边栏推荐
- 2021-05-11 static keyword
- 2021-05-12接口的定义与实现
- Golang 快速上手 (3)
- Lying trough, the most amazing paper artifact!
- mysql innodb 的 redo log buffer 中未 commit 的事务持久化到 redo log 后,万一事务 rollback 了怎么办?redo log 怎么处理这个事务操作?
- 2021-05-11static关键字
- Bi SQL drop & alter
- NOI OJ 1.4 04:奇偶ASCII值判断 C语言
- 2022高考季征文获奖名单公布
- MySQL Basics - Notes
猜你喜欢

Unity技术手册 - 生命周期内速度限制(Limit Velocity Over Lifetime)子模块和速度继承(Inherit Velocity)子模块

马斯克 18 岁儿子请愿改名,欲断绝父子关系

解决预览pdf不能下载的问题

Data structures and differences between MySQL InnoDB engine and MyISAM

文件IO(1)

线程池在项目中使用的心得体会

Developer, you may have some misunderstandings about cloud computing

Confessing with Snake games (with source code)

Liujinhai, architect of zhongang Mining: lithium battery opens up a Xintiandi for fluorine chemical industry

2021-05-07 constructor
随机推荐
STM32F1与STM32CubeIDE编程实例-红外寻迹传感器驱动
基于SqlSugar的开发框架循序渐进介绍(9)-- 结合Winform控件实现字段的权限控制
2021-04-16数组
Several practical software sharing
sql编写问题,求出当月和上月的环比值
NOI OJ 1.4 04:奇偶ASCII值判断 C语言
pycharm安装教程,超详细
[software and system security] heap overflow
[day 23] given an array of length N, insert element x into the position specified by the array | array insertion operation 4
After installing these five plug-ins, pycharm can be used for takeoff!
NOI OJ 1.3 04:带余除法 C语言
The era of copilot free is over! The official version is 67 yuan / month, and the student party and the defenders of popular open source projects can prostitute for nothing
Is IPv6 faster than IPv4?
开发者,你对云计算可能有些误解
解决audio自动播放无效问题
2021-05-07封装 继承 super this
验证码redis实践总结
Install using snap in opencloudos NET 6
How to pass values to onclick events in thymeleaf
sql根据比较日期新建字段