这就是重现错误所需的全部内容:
public ParticleSystem light_ps;
private void Start()
{
ParticleSystem.MainModule new_main = light_ps.main;
new_main.startSpeed.constantMax = 10f;
}
我找到了答案:
ParticleSystem.MainModule new_main = light_ps.main;
new_main.startSpeed = new ParticleSystem.MinMaxCurve(5, 10);