inverseStartLifetimes
The lifetime of each particle, stored as 1.0f / lifetime.
阅读时间1 分钟最后更新于 2 个月前
Definition
- Type: Property
- Namespace: UnityEngine.ParticleSystemJobs
- Assembly: UnityEngine.ParticleSystemModule
public readonly NativeArray<float> inverseStartLifetimes { get; }
Remarks
There are more cases in the native code where we wish to divide by lifetime, rather than multiply by it. Therefore, storing the reciprocal allows us to perform efficent multiplies, rather than slow divides, in the majority of use-cases.