Unity新版本的粒子代码框架更改过,之前的很多api是不能用的。
新版本的粒子效果把整个数据分成了几大模块,每个模块是一个struct
public struct MainModule
{
public float duration { get; set; }
public float startRotationXMultiplier { get; set; }
public MinMaxCurve startRotationY { get; set; }
public float startRotationYMultiplier { get; set; }.
public MinMaxCurve startRotationZ { get; set; }
public float startRotationZMultiplier { get; set; }
public float flipRotation { get; set; }
public MinMaxGradient startColor { get; set; }
public MinMaxCurve gravityModifier { get; set; }
public float gravityModifierMultiplier { get; set; }
public ParticleSystemSimulationSpace simulationSpace { get; set; }
public Transform customSimulationSpace { get; set; }
public float simulationSpeed { get; set; }
public bool useUnscale