Version: 2019.3
public Color Evaluate (float time);
public Color Evaluate (float time, float lerpFactor);

パラメーター

timeNormalized time (in the range 0 - 1, where 1 represents 100%) at which to evaluate the gradient. This is valid when ParticleSystem.MinMaxGradient.mode is set to ParticleSystemGradientMode.Gradient or ParticleSystemGradientMode.TwoGradients.
lerpFactorBlend between the two gradients/colors (Valid when ParticleSystem.MinMaxGradient.mode is set to ParticleSystemGradientMode.TwoColors or ParticleSystemGradientMode.TwoGradients).

戻り値

Color 算出されたグラデーション/色の値

説明

グラデーションのモードに基づいて、色を計算するよう手動でグラデーションに問い合わせします。

This automatically clamps the time and lerpFactor properties between 0 and 1.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961