当前位置:网站首页>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/
这位道友请留步️,我观你气度不凡,谈吐间隐隐有王者霸气,日后定有一番大作为!!!旁边有点赞收藏今日传你,点了吧,未来你成功️,我分文不取,若不成功️,也好回来找我。
温馨提示:点击下方卡片获取更多意想不到的资源。
边栏推荐
- Helsinki traffic safety improvement project deploys velodyne lidar Intelligent Infrastructure Solution
- What is the NFT digital collection?
- Describe your understanding of the evolution process and internal structure of the method area
- 数字经济时代文化消费新特征
- Most commonly used SQL statements
- leetcode-8. String to integer (ATOI)
- Rxjs TakeUntil 操作符的学习笔记
- Don't underestimate the integral mall, its role can be great!
- ES6 deconstruction assignment rename
- Read AFN through - from the creation of manager to the completion of data parsing
猜你喜欢

How to reload the win10 app store?

Helsinki traffic safety improvement project deploys velodyne lidar Intelligent Infrastructure Solution

心楼:华为运动健康的七年筑造之旅

Geographic location data storage scheme - redis Geo

商城风格也可以很多变,DIY 了解一下!

iVX低代码平台系列详解 -- 概述篇(一)

20省市公布元宇宙路线图

GO语言-什么是临界资源安全问题?

读配置、讲原理、看面试真题,我只能帮你到这了。。。

教务系统开发(PHP+MySQL)
随机推荐
When inputting text in the shutter textfield, if the page is refreshed, the cursor position will change.
NFT元宇宙发展能做什么?
What is the NFT digital collection?
Tensorflow loading cifar10 dataset
Uncover gaussdb (for redis): comprehensive comparison of CODIS
Bugly hot update usage
Time wheel and implementation analysis of time wheel in go zero
This article will help you understand the common concepts, advantages and disadvantages of JWT
深入理解和把握数字经济的基本特征
Describe your understanding of the evolution process and internal structure of the method area
File operation, serialization, recursive copy
不要小看了积分商城,它的作用可以很大!
Gold three silver four, an article to solve the resume and interview
Xinlou: Huawei's seven-year building journey of sports health
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection翻译
[problem solving] dialogfragment can not be attached to a container view
Dino: Detr with improved detecting anchor boxes for end to end object detection
js 给元素添加自定义属性
JS add custom attributes to elements
GridLayout evenly allocate space