ShapeModule 的脚本接口。
配置粒子的初始位置和方向。
另请参阅:ParticleSystem、ParticleSystem.shape。
alignToDirection | 根据粒子的初始行进方向对齐粒子。 |
angle | 要发出粒子的锥体的角度。 |
arc | 要发出粒子的圆弧的角度。 |
arcMode | Unity 用于在弧形周围生成粒子的模式。 |
arcSpeed | 在动画模式下,这决定了粒子发射位置围绕圆弧移动的速度。 |
arcSpeedMultiplier | 粒子发射形状的圆弧速度乘数。 |
arcSpread | 控制粒子发射点之间围绕圆弧的间隙。 |
boxThickness | 要发出粒子的盒体的厚度。 |
donutRadius | 要发射粒子的圆环形状的厚度。 |
enabled | 指定启用还是禁用 ShapeModule。 |
length | 要发出粒子的锥体的长度。 |
mesh | 要从中发射粒子的网格。 |
meshMaterialIndex | 从网格的单个材质发射粒子。 |
meshRenderer | 要从中发射粒子的 MeshRenderer。 |
meshShapeType | 网格上要用于发射粒子的位置。 |
meshSpawnMode | 用于在网格上生成粒子的模式。 |
meshSpawnSpeed | 在动画模式下,这决定了粒子发射位置在网格上移动的速度。 |
meshSpawnSpeedMultiplier | 网格生成速度的乘数。 |
meshSpawnSpread | 控制网格上粒子发射点之间的间隙。 |
normalOffset | 使粒子远离源网格的表面。 |
position | 对系统从其发射粒子的位置应用偏移。 |
radius | 要发出粒子的形状的半径。 |
radiusMode | 用于沿半径生成粒子的模式。 |
radiusSpeed | 在动画模式下,这决定了粒子发射位置沿着半径移动的速度。 |
radiusSpeedMultiplier | 粒子发射形状的半径速度乘数。 |
radiusSpread | 控制粒子发射点之间沿半径的间隙。 |
radiusThickness | 要发出粒子的形状边缘的半径厚度。 |
randomDirectionAmount | 随机化粒子的初始方向。 |
randomPositionAmount | 随机化粒子的初始位置。 |
rotation | 对系统从其发射粒子的形状应用旋转。 |
scale | 对系统从其发射粒子的形状应用缩放。 |
shapeType | 要发出粒子的形状的类型。 |
skinnedMeshRenderer | 要从中发射粒子的 SkinnedMeshRenderer。 |
sphericalDirectionAmount | 使粒子从起始点沿球面方向移动。 |
sprite | 要发出粒子的精灵。 |
spriteRenderer | 要发出粒子的 SpriteRenderer。 |
texture | 指定要为粒子初始颜色着色的纹理。 |
textureAlphaAffectsParticles | 启用时,系统将纹理的 Alpha 通道应用于粒子 Alpha(在粒子生成时)。 |
textureBilinearFiltering | 启用时,系统从纹理采集 4 个相邻样本并进行合并,以提供最终粒子值。 |
textureClipChannel | 选择用于丢弃粒子的纹理通道。 |
textureClipThreshold | 当粒子在值低于此阈值的纹理区域上生成时将其丢弃。 |
textureColorAffectsParticles | 启用时,系统将纹理的 RGB 通道应用于粒子颜色(在粒子生成时)。 |
textureUVChannel | 使用网格作为源形状类型时,此选项可控制网格上用于读取源纹理的 UV 通道。 |
useMeshColors | 使用顶点颜色调整粒子颜色,或者,如果顶点颜色不存在,则使用材质颜色。 |
useMeshMaterialIndex | 从单个材质或整个网格发射粒子。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.