Select your preferred scripting language. All code snippets will be displayed in this language.
struct in UnityEngine
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
CloseScript interface for the Shape module.
See Also: ParticleSystem, ParticleSystem.shape.
alignToDirection | Align particles based on their initial direction of travel. |
angle | Angle of the cone. |
arc | Circle arc angle. |
box | Scale of the box. |
enabled | Enable/disable the Shape module. |
length | Length of the cone. |
mesh | Mesh to emit particles from. |
meshMaterialIndex | Emit particles from a single material of a mesh. |
meshRenderer | MeshRenderer to emit particles from. |
meshScale | Apply a scaling factor to the mesh used for generating source positions. |
meshShapeType | Where on the mesh to emit particles from. |
normalOffset | Move particles away from the surface of the source mesh. |
radius | Radius of the shape. |
randomDirectionAmount | Randomizes the starting direction of particles. |
shapeType | Type of shape to emit particles from. |
skinnedMeshRenderer | SkinnedMeshRenderer to emit particles from. |
sphericalDirectionAmount | Spherizes the starting direction of particles. |
useMeshColors | Modulate the particle colors with the vertex colors, or the material color if no vertex colors exist. |
useMeshMaterialIndex | Emit from a single material, or the whole mesh. |