The following code can often be found in UNiagaraDataInterfaceChaosDestruction.
const int32 ParticleID = ParticleIDParam.GetAndAdvance() - LastSpawnedPointID + 1;
The LastSpawnedPointID is usually set to -1, so the iteration range is over a range of 2 to GetNumInstances()+2 and references an outside the range.
The following code can fix the issue :
const int32 ParticleID = ParticleIDParam.GetAndAdvance() +LastSpawnedPointID + 1;
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-231785 in the post.
0 |
Component | UE - Niagara - Data Interface |
---|---|
Affects Versions | 5.1.1, 5.3.2, 5.4, 5.5 |
Created | Nov 29, 2024 |
---|---|
Updated | Aug 8, 2025 |