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

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

该模块可以实现随着生命周期的变化粒子的大小也随之变化。
Separate Axes-分离轴:表示开启后可分别控制x轴y轴z轴,默认不勾选控制的是粒子系统整体。要想实现非均匀粒子缩放可以勾选该分离轴,然后分别更改x轴y轴z轴,注意z仅仅在网格粒子有效。
Size:生命周期内粒子大小变化,通过一条曲线或双曲线区间或双值区间来定义粒子的大小在其生命周期内如何变化。
应用场景:对于燃料燃烧产生的火球,火焰粒子在发射后会趋于膨胀,但后期随着燃料用完和火焰消散而逐渐消失和收缩。在这种情况下,曲线会有一个先上升再下降到较小大小的“驼峰”。
速度决定大小(Size by Speed)子模块

该模块可以控制不同的粒子速度显示不同的大小,比如爆炸效果,真实的物理效果,飞出的速度快一般是稍微小些物体,体积和质量越大物体一般速度越慢。
该模块属性和速度颜色(Color By Speed)模块属性基本一样。分离轴可以利用x轴y轴z轴不同缩放来说实现非均匀效果。
新建一个场景,你可以创建一个新粒子系统物体,然后将主模块的【Start Speed】设置为两个数值区间比如1-10。然后勾选激活速度大小(Size By Speed)模块,将速度范围也设置为1-10,然后修改曲线,就能看出效果了(记得打开实时预览否则得运行后看效果),在实际项目中该模块的速度区间范围通常也会和【Start Speed】区间范围一致,这样一眼就能看出对应关系,即使时间久了回头也能快速看明白,否则再回头看这个粒子还得自己计算一波,白白浪费时间。
其他
作者:小空和小芝中的小空
转载说明-务必注明来源:https://zhima.blog.csdn.net/
这位道友请留步️,我观你气度不凡,谈吐间隐隐有王者霸气,日后定有一番大作为!!!旁边有点赞收藏今日传你,点了吧,未来你成功️,我分文不取,若不成功️,也好回来找我。
温馨提示:点击下方卡片获取更多意想不到的资源。
边栏推荐
- 不要小看了积分商城,它的作用可以很大!
- 转换Cifar10数据集
- 赫尔辛基交通安全改善项目部署Velodyne Lidar智能基础设施解决方案
- Collection overview, array encapsulation
- Day21 multithreading
- Go development team technical leader Russ Cox sends a document to share go's version control history
- Check whether the port number is occupied
- Function and implementation of closures
- 有哪些新手程序员不知道的小技巧?
- Alvaria announces Jeff cotten, a veteran of the customer experience industry, as its new CEO
猜你喜欢

How to reload the win10 app store?

深入理解和把握数字经济的基本特征

Bypass technology to talk about 'cross end'
Check whether the port number is occupied

Learning notes of rxjs takeuntil operator

What exactly is a handler

What can one line of code do?

Blue Bridge Cup - practice system login

Go language - what is critical resource security?

Rxjs TakeUntil 操作符的学习笔记
随机推荐
一行代码可以做什么?
What are the reasons why the game industry needs high defense servers?
Power representation in go language
Classic deadlock scenario of multithreading and its solution (philosopher dining problem)
Prototype mode
数据存储和传输文件之XML使用和解析详解
Create raspberry PI image file of raspberry pie
Shuttle pop-up returns to the upper level
Lifeifei's team applied vit to the robot, increased the maximum speed of planning reasoning by 512 times, and also cued hekaiming's MAE
Go language - what is critical resource security?
Collection overview, array encapsulation
error Parsing error: Unexpected reserved word ‘await‘.
[untitled]
What is backbone network
_ 17 collection overview
Educational administration system development (php+mysql)
Interviewer: your resume says you are proficient in mysql, so you say cluster / Union / overlay index, table return, index push down
GO语言-什么是临界资源安全问题?
Continuously improve the overall performance of adaoracle Oracle Oracle
White screen, how fouc is formed, and how to avoid it