If you add ParticleSystem to the Preferred Types, you will be able to get the modules like EmissionModule with a ‘Get Property’ action from the ‘ParticleSystem’ type (“Get Emission() : EmissionModule” ).
With that said though, getting or setting the module properties directly THROUGH a particle system reference is not really possible with the reflection tasks since they do not support “nesting” (at least as of now), thus you can’t do something like var rate = particle.emission.rate.
Furthermore, modules are structs and unfortunately, reflection based tasks do not work with structs, thus it’s not really possible to store a module reference to a blackboard variable and then alter its properties.
I believe that the best solution for that, would be to create a very simple custom Action Task to set the particle module properties that you need to set, at least until either reflection tasks are made to also work with “nested” properties, or tasks in general are made to work with structs as well.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.