[경고&에러 대응] UnityEngine.ParticleSystem.enableEmission' is obsolete by pbkim




foreach (ParticleSystem em in pss)
if (em != null) 
{
  em.enableEmission = false;
}

->

foreach (ParticleSystem em in pss)
if (em != null) 
{
  var emission = em.emission;                                 //added for unity2017
  emission.enabled = false;   //em.enableEmission = false;    //modified for unity2017
}


구글 468*60


Linked in

linknow profile