当前位置:网站首页>Unity技术手册 - 生命周期内颜色ColorOverLifetime--速度颜色ColorBySpeed
Unity技术手册 - 生命周期内颜色ColorOverLifetime--速度颜色ColorBySpeed
2022-06-25 21:48:00 【华为云】
本文约3千字,新手阅读需要9分钟,复习需要2分钟 【收藏随时查阅不再迷路】
关于作者
众所周知,人生是一个漫长的流程,不断克服困难,不断反思前进的过程。在这个过程中会产生很多对于人生的质疑和思考,于是我决定将自己的思考,经验和故事全部分享出来,以此寻找共鸣 !!!
专注于Android/Unity和各种游戏开发技巧,以及各种资源分享(网站、工具、素材、源码、游戏等)
有什么需要欢迎私我,交流群让学习不再孤单。

前提
这是小空坚持写的Unity新手向系列,欢迎品尝。
新手(√√√)
大佬(√)
粒子这一块是个系列文章,并且介绍的非常详细,建议收藏。
实践过程
发射器生命周期(Lifetime by Emitter Speed)子模块

激活此属性当你移动整个粒子系统物体的时候可以看出效果。默认移动的快产生产生的粒子少。比如蜡烛的火苗,你在移动的过程中火苗会减小,静止无风会恢复火苗大小。
生命周期内颜色(Color Over Lifetime)子模块


该模块用来控制粒子的颜色和透明在在生命周期是如何变化的,支持双渐变,粒子会随机取其中一个渐变。渐变条的左侧点表示粒子寿命的开始,而渐变条的右侧表示粒子寿命的结束。
许多类型的天然和超现实粒子的颜色随时间而变化,因此该属性有许多用途。例如,白色强火花在通过空气时会冷却,魔法可能会突然变成彩虹色。但同样重要的还有 Alpha(透明度)的变化。粒子在达到其生命周期终点时燃尽、褪色或消散是很常见的现象(例如,强火花、烟花和烟雾粒子),通过简单的梯度渐变即可产生这种效果。
速度颜色(Color By Speed)子模块

该模块可设置粒子的颜色根据粒子速度(每秒的距离单位)变化。
Color:在速度范围内定义的粒子的颜色渐变。
Speed Range:颜色渐变映射到的速度范围的下限和上限(超出范围的速度将映射到渐变的端点)。
燃烧或发光的粒子(如火花)在空气中快速移动时会更明亮地燃烧(例如,当火花接触到更多氧气时),但随着它们减速时会略微变暗。要模拟这一点,可使用 Color By Speed 模块,使渐变在速度范围的上限为白色,而在下限为红色(在火花示例中,较快的粒子将显示为白色,而较慢的粒子为红色)。
你可以创建一个新粒子系统将主模块的【Start Speed】设置为两个数值区间比如1-10。然后激活速度颜色(Color By Speed)模块,将速度范围也设置为1-10,然后修改颜色值,就能看出效果了,在实际项目中该模块的速度区间范围通常也会和【Start Speed】区间范围一致,一眼就能看出对应关系,否则还得自己计算一波。
其他
作者:小空和小芝中的小空
转载说明-务必注明来源:https://zhima.blog.csdn.net/
这位道友请留步️,我观你气度不凡,谈吐间隐隐有王者霸气,日后定有一番大作为!!!旁边有点赞收藏今日传你,点了吧,未来你成功️,我分文不取,若不成功️,也好回来找我。
边栏推荐
- Interview shock 23: talk about thread life cycle and transformation process?
- STM32F103RCT6
- Exclusive interview with deepmindceo hassabis: we will see a new scientific Renaissance! AI's new achievements in nuclear fusion are officially announced today
- The difference between synchronize and volatile
- Evaluate the generalization performance of models and build integrated models using out of pocket prediction (oof)
- Research Report on China's new energy technology and equipment market competition analysis and marketing strategy suggestions 2022-2028
- Does jQuery cache any selectors- Does jQuery do any kind of caching of “selectors”?
- Hotspot JVM "01" class loading, linking and initialization
- ITU AI and multimedia Seminar: exploring new areas and cross SDO synergy
- 华为云短信测了很多手机都提示发送频繁
猜你喜欢
![[intensive lecture] 2022 PHP intermediate and advanced interview questions (II)](/img/50/c9572beaa035d5e6e78a57fcd1302c.jpg)
[intensive lecture] 2022 PHP intermediate and advanced interview questions (II)

Where is win11 screen recording data saved? Win11 screen recording data storage location

2022-2028 global transmission type photoelectric circuit breaker industry research and trend analysis report

2022-2028 global horizontal reciprocating compressor industry research and trend analysis report

Devops之制品库平台nexus实践

CVPR2022教程 | 马里兰大学《机器学习遥感处理:农业与粮食安全》教程

聊聊Adapter模式

2022-2028 global selective laser sintering service industry research and trend analysis report
![[WPF] XAML code skills that can be directly used for converting CAD engineering drawings to WPF](/img/a1/09d2dc0ec47c54530da4d42d218d1c.jpg)
[WPF] XAML code skills that can be directly used for converting CAD engineering drawings to WPF
![Lecture 14 of the Blue Bridge Cup -- number theory [exercises]](/img/96/0971909c8bf25820c2d4f520bb83fb.jpg)
Lecture 14 of the Blue Bridge Cup -- number theory [exercises]
随机推荐
SSH modifies grub in heiqunhui ds918+ system 7.0.1 cfg
Reasons why MySQL cannot be connected externally after installing MySQL database on ECs and Solutions
Touring band: a 5g based multi camera remote distributed video production experiment
ITU AI and multimedia Seminar: exploring new areas and cross SDO synergy
Global and Chinese oleic acid operation mode and market supply and demand forecast report 2022 ~ 2028
Conglin environmental protection IPO meeting: annual profit of more than 200million to raise 2.03 billion
Webrtc crash course
Obsidian基础教程
Some reflections on preparing for the Blue Bridge Cup
Practice of product library platform nexus of Devops
Research and Analysis on the current situation of China's magnetic detector Market and forecast report on its development prospect (2022)
When we talk about the metauniverse, what are we talking about?
NRM source switching tool
Audio orchestrator: orchestrate immersive interactive audio using multiple devices
Basic concepts of processor scheduling
Tiger DAO VC产品正式上线,Seektiger生态的有力补充
Evaluate the generalization performance of models and build integrated models using out of pocket prediction (oof)
QT learning setting executable exe attribute (solving the problem of Chinese attribute garbled)
Huasheng lithium battery IPO meeting: 9-month revenue of 690million; shenjinliang's family relationship is complex
HLS. JS: past, present and future