Hello, i try to scale the `ParticeSystem.velocityOverLifetime.curveScalar`, but the unity editor crash.
This is my test sample:
1. I create a new particle system game object, and enable the "Velocity over Lifetime" item.
![Particle System Setup][1]
2. Create a C# script, and coding to modify ParticeSystem.velocityOverLifetime.curveScalar.
// Use this for initialization
void Start () {
ParticleSystem _Particle = GetComponent();
var _velocityOverLifetime = _Particle.velocityOverLifetime;
var _velocityOverLifetimeX = _velocityOverLifetime.x;
_velocityOverLifetimeX.curveScalar *= 2;
_velocityOverLifetime.x = _velocityOverLifetimeX;
}
3. Add the script to particle game object.
![alt text][2]
Finally... Just click `Play`! The unity editor well crash...
Help...
Unity Version: 5.3.2p3, 5.3.4f1
[1]: /storage/temp/66175-螢幕快照-2016-03-18-上午114603.png
[2]: /storage/temp/66176-螢幕快照-2016-03-18-下午120308.png
↧