-
Notifications
You must be signed in to change notification settings - Fork 443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR]: 如果需要动态修改粒子大小有现成的方法可以调用吗? #361
Comments
先将想修改属性的组件保存到一个变量中,随后在回调事件中修改即可。看下面这两个小栗子,按下qwer上面的1234键看效果。 |
蟹蟹~ 很感谢。 this.OverLifeScaleModule = simulator.addModule(ParticleOverLifeScaleModule); 然后在事件中进行回调 没有修改成功,是我的写法有问题吗? |
你可以先看看控制台有没有报错。 |
啊啊啊啊啊啊啊~~~好了~~ (^3^) (^3^) (^3^) |
想再追问下,修改发射器半径时。似乎会导致粒子重置发射,缺少了变大变小时的过渡效果,这个会尝试更新吗 |
不清楚哎,我也是新手 |
因为想节省初始化时间和场景资源,场景内已创建的粒子可以进行修改发射时和结束时的大小 或 颜色吗?
The text was updated successfully, but these errors were encountered: