struct in UnityEngine
Script interface for a Particle.
粒子的脚本接口。
See Also: ParticleSystem, ParticleSystem.GetParticles, ParticleSystem.SetParticles.
angularVelocity | The angular velocity of the particle. 粒子的角速度。 |
angularVelocity3D | The 3D angular velocity of the particle. 3D粒子角速度。 |
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. 该粒子的3D旋转角度。 |
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. 该粒子的初始大小。粒子的当前大小是由程序基于该值和激活的大小模块计算。 |
velocity | The velocity of the particle. 粒子的速度。 |
GetCurrentColor | Calculate the current color of the particle by applying the relevant curves to its startColor property. 粒子的当前颜色通过应用到相关曲线到startColor属性计算。 |
GetCurrentSize | Calculate the current size of the particle by applying the relevant curves to its startSize property. 粒子的当前大小通过应用到相关曲线到startSize属性来计算。 |