- Home /
Question by
TogoYu · Mar 18, 2016 at 12:50 PM ·
crashparticlesparticlesystemparticle systemparticle
Unity BUG crash when modify ParticleSystem MinMaxCurve
Hello, i try to scale the ParticeSystem.velocityOverLifetime.curveScalar
, but the unity editor crash.
This is my test sample:
I create a new particle system game object, and enable the "Velocity over Lifetime" item.
Create a C# script, and coding to modify ParticeSystem.velocityOverLifetime.curveScalar.
// Use this for initialization void Start () { ParticleSystem _Particle = GetComponent<ParticleSystem>(); var _velocityOverLifetime = _Particle.velocityOverLifetime; var _velocityOverLifetimeX = _velocityOverLifetime.x; _velocityOverLifetimeX.curveScalar *= 2; _velocityOverLifetime.x = _velocityOverLifetimeX; }
Add the script to particle game object.
Finally... Just click Play
! The unity editor well crash...
Help...
Unity Version: 5.3.2p3, 5.3.4f1
螢幕快照-2016-03-18-上午114603.png
(38.6 kB)
螢幕快照-2016-03-18-下午120308.png
(32.6 kB)
Comment