I packaged my game, and I get this error when I open the executable:
Assertion failed: Param.GetSizeInBytes() == sizeof(T) [File:D:\build\++UE5\Sync\Engine\Plugins\FX\Niagara\Source\Niagara\Public\NiagaraParameterStore.h] [Line: 508]
It’s caused by this line, as well as all my other Niagara user parameter functions in the same class:
NS_Beam->SetVectorParameter("BeamEnd", BeamEnd);
Where NS_Beam is a UNiagaraComponent.
It works fine in the editor, just not in my packaged game. I’d appreciate the help to solve this problem.
Thanks.