I’m attempting to find out how to set the length/distance of a Beam particle system in code, but all I’m finding is hundreds of answers on how to set target positions or target actors in Blueprint, etc.
I just want to be able to set the value shown in this snapshot:
**In Cascade **
Click on "Distribution Float Constant" (pic above as reference)
Select "**Distribution Float Particle Parameter**"
You can do this with most parameters in Cascade to then set them via code!
Give your parameter a name and default value (the constant), all within Cascade itself.
In C++
Now, in C++, after spawning your UParticleSystemComponent* via UGameplayStatics::Spawn Emitter, or some other method,