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

Hey, sorry for replying over a year later.
Your implementation works for me, but only in Editor. But in a Packaged Build, GetOverrideParameters() always returns an FNiagaraParameterStore without any entries.
Do you have any idea what could be causing this? Do you remember if you got this to work in a build?
Edit: I still use 4.23.