I was looking for a way to code the extraction of my Niagara System particles data using Particle Export Data and make it work.
You see, I created a Niagara Modular Script and inside I have used, in the Map Get, a Particle Export Data, in addition to a Store Particle Data node. But I can only store particles data such as particles position, size and velocity. I can’t store parameters like Lifetime, SpriteFacing, SpriteAlignment, Gravity Force Vector, etc. Here is the Niagara Module Script:
And here is a image of my Niagara System setup:
My AActor class is inheriting INiagaraParticleCallbackHandler and implementing the both the UNiagaraComponent::SetNiagaraVariableObject and the INiagaraParticleCallbackHandler::ReceiveParticleData method. Accessing FBasicParticleData members only shows particles Position, Size and Velocity, the rest are irrelevant.
I mean, I want to get some information, coding, from my Niagara System, like Lifetime, SpriteAlignment Vector, etc., multiply them by a value stored in a variable and use the UNiagaraComponent::SetFloatParameter to reconfigure the system, it’s that so complicated to do? Niagara’s documentation is laughable, is lacking a lot of things.
Based on the NiagaraDataInterfaceExport.h, what should modify, besides that FbasicParticledata struct? Or is there any other option to retrieve such data?
PS: EPIC, your documentation sucks!!!