2.1 Particle Attribute Reader【粒子属性读取器】
This emitter spawns a single particle with a random color.
(资料图)
【此发射器生成一个随机颜色的粒子】
The Attribute Reader is defined at Emitter Spawn so multiple modules can reference it.
The emitter to be read is specified here.
【属性读取器在发射器生成阶段被定义,所以多个模组能够引用它】
【发射器只能在此处被读取】
The Attribute Reader is used inside the 'Read Color from Emitter' scratch module to query the color of the Source particle. Double click the module to view.
【属性读取器被使用在Read Color from Emitter本地模组里,用于查询源粒子的颜色。双击模组进行查看】
There are two options when identifying a particle to read: Index and ID.
Index is the Index of the particle in the other emitter from 0 to NumParticles-1. As particles die, their index can change so it's inherently unstable, but straightforward to use in simple cases like this one.
【当识别需要读取的粒子时,即可使用Index来识别,也可以使用ID来识别】
【Index是读取的发射器的粒子索引,从0开始到粒子数量减1结束。当粒子死亡时,它们的索引就会改变,所以它们是不固定的,但可以在现在这种简单情况下使用】
ID remains table over time and is unique across all emitters in a system, but it can be hard to identify across emitters.
In this case we know we are querying an emitter with only one particle. As a result we can hard-code the index to zero.
【ID随时间保持稳定,且在系统中所有发射器里都是唯一的,但它很难跨发射器识别。在此案例我们知道我们查询的发射器只有一个粒子。所以我们直接设置索引的固定值为0】
This can be used to sample a particle by Index, but then cache off its ID for later stable sampling.
【这可用于使用索引采样粒子ID,然后使用该ID固定采样该粒子】
This emitter rotates a single particle around the Y axis. It's color is picked randomly each loop.
【此发射器绕Y轴旋转一个单一粒子。它在每次循环时随机一种颜色】
This emitter creates a ring of particles around the Y axis.
The particles live forever and change color based on the proximity of the Leader particle.
【此发射器绕Y轴生成圆环排列的粒子】
【粒子永久存活并基于与领导粒子的靠近距离改变颜色】
Shape Location【形状位置】模组用于粒子更新阶段,实现粒子绕圈移动的效果
Return Normalized Exec Index【返回标准化执行索引】函数
X 关闭
Copyright © 2015-2022 西方珠宝网版权所有 备案号:沪ICP备2020036824号-7 联系邮箱:5 626 629 @qq.com