particle-system

three.js - Adjusting opacity of individual particles

不打扰是莪最后的温柔 提交于 2019-11-26 12:26:46
问题 I am trying to vary the opacity of particles as a function of their distance from a plane. This issue describes my problem, and the answer a year ago was essentially \"you can\'t\" . Opacity is apparently a parameter of a material, not an element, and hence individual particle opacity is not possible. Has anything changed, is there any way I could achieve this? If individual particle colouring is possible, I imagine this isn\'t out of reach. Cheers 回答1: ParticleSystem has been renamed to

Unity 5.5 obsolete particle system code

╄→гoц情女王★ 提交于 2019-11-26 09:55:02
问题 Before 5.5 particle system variables could be accessed via ParticleSystem and were read/write. Now they\'re accessed via ParticleSystem.MainModule and thus a lot of code has become obsolete. The API Updater has not been able to fix most of the issues. I\'ve read through the new documentation but I can\'t figure out how the new variable types are supposed to be used. For example in JetParticleEffect.cs this line causes a warning: // set the original properties from the particle system m