How do you set a Texture on a Niagara variable at runtime?

Hey, i eventually figured out the proper solution that also works for packaged games after modifying the other code in this thread. Using a material instance wouldnt work at all for me since im using the texture input to send a render target that’s encoding a ton of array data.

Not sure if you need this but it’s posted as an answer to this question.