本文介绍了粒子发射器已贬值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我统一拥有以下代码块:
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;
}
在新版本的unity中不再起作用,因此将其更改为.我的问题是.emit的替换值应该是什么?
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?
推荐答案
请记住,旧粒子系统已过时,将很快删除.考虑使用新的粒子系统.此处,您将看到如何使用新系统从脚本中发射粒子.
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.
这篇关于粒子发射器已贬值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!