📜  设置粒子系统开始颜色 + 两者之间的随机 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.230000             🧑  作者: Mango

代码示例1
//Main Particle system attached to the thruster
ParticleSystem thrusterPS = thruster.GetComponent();
var main = thrusterPS.main;
main.startColor = new ParticleSystem.MinMaxGradient(thrusterColour1, thrusterColour2);