engine icon indicating copy to clipboard operation
engine copied to clipboard

ParticleRender startColor in Gradient / Two-Gradient Mode doesn't take effect

Open JujieX opened this issue 1 year ago • 0 comments

Describe the bug ParticleRender startColor in Gradient Mode doesn't take effect

To Reproduce

  main.startColor.mode = ParticleGradientMode.Gradient;
  const gradient = main.startColor.gradient;
  gradient.addColorKey(0, new Color(1, 0, 0, 1));
  gradient.addColorKey(1, new Color(1, 0, 0, 1));
  gradient.addAlphaKey(0, 1);
  gradient.addAlphaKey(1, 1);

JujieX avatar Dec 11 '23 07:12 JujieX