Unity 5.3 : AudioSource.PlayOneShot and ParticleEmitter.Emit (and other ?) make unity crash
Hello,
Since I have upgrade my unity to 5.3, I have a runtime error (unity editor completly crash) when a function PlayOnShot or Emit are called. When I skip these function, my game no longer seems crash anymore, but if I play for a long time, it crash again (in fact I havn't found this last source of crash ...)
My game doesn't crash in unity 5.1 ... I tested my project on 3 different pc, I reassembled entirely my project, and I made other tests, without success.
Can you help me ?
Thanks in advance, Kinds Regards
After a multiple test :
On one of my calls "PlayOneShot", if I deplace the line "Camera.main.GetComponent ().PlayOneShot(mySound);" after this line (before = crash) "GetComponent().enabled = false;", the crash disappear. I don't understand why... And this method doesn't solved on another "PlayOnShot" ...
If I called "Camera.main.GetComponent ().Play()" with null clip on AudioSource, i havn't crash, but the same thing, with a clip, boom, crash ...
I've test a different importation of my sounds, without effect
On the "Emit" problem, if I called this, I crash, but if I set properly the ParticleEmitter, and just Instantiate one prefab that contain this, the particles are emitted, and no crash of unity editor...