기술 자료

Unity Engine

Unity Engine

inverseStartLifetimes

The lifetime of each particle, stored as 1.0f / lifetime.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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.