Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Unity crash when modify ParticleSystem MinMaxCurve

$
0
0
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

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>