0
我能之前在Visual Studio C#代码中使用,不能使用c#particleSystem属性了吗?
particleSystem.SetParticles(points, points.Length);
但现在它给我一个错误。语法是否改变?我必须使用
GetComponent<ParticleSystem>().SetParticles(points, points.Length);
now?我的VS项目(在这里使用Unity)不再显示我的粒子,但我还没有找到任何其他语法我可以/应该使用。这是否正确,是否还有其他错误?或者这是不正确的? 谢谢。
它给出了什么特别的错误? – stuartd
@stuartd它告诉我,particleSystem.SetParticles()已经过时,并告诉我使用GetComponent行。我用它,因为他们说,但现在我没有颗粒。 – mkpappu
当然,你现在使用“GetComponent” - 没什么大不了的 – Fattie