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.
CloseScript interface for a Particle.
angularVelocity | The angular velocity of the particle. |
angularVelocity3D | The 3D angular velocity of the particle. |
lifetime | The lifetime of the particle. |
position | The position of the particle. |
randomSeed | The random seed of the particle. |
rotation | The rotation of the particle. |
rotation3D | The 3D rotation of the particle. |
startColor | The initial color of the particle. The current color of the particle is calculated procedurally based on this value and the active color modules. |
startLifetime | The starting lifetime of the particle. |
startSize | The initial size of the particle. The current size of the particle is calculated procedurally based on this value and the active size modules. |
startSize3D | The initial 3D size of the particle. The current size of the particle is calculated procedurally based on this value and the active size modules. |
velocity | The velocity of the particle. |
GetCurrentColor | Calculate the current color of the particle by applying the relevant curves to its startColor property. |
GetCurrentSize | Calculate the current size of the particle by applying the relevant curves to its startSize property. |
GetCurrentSize3D | Calculate the current 3D size of the particle by applying the relevant curves to its startSize3D property. |