ParticleEmitter depreciated

2019-08-27 21:56发布

In unity I have this block of code:

  private IEnumerator ShowEffectCouroutine (Transform fadingStar)
    {
    yield return new WaitForSeconds (0.5f);
    fadingStar.Find ("Effect").GetComponent<ParticleEmitter> ().emit =  true;
    }

is no longer working in the new version of unity so it is changed to . My question is what should be the replacement value of .emit?

标签: unity3d
2条回答
虎瘦雄心在
2楼-- · 2019-08-27 22:27
仙女界的扛把子
3楼-- · 2019-08-27 22:40

Keep in mind that the legacy particle system is obsolete and will be removed soon. Consider using the new particle system. Here you can see how to use the new system to emit particles from script.

查看更多
登录 后发表回答