Description

 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;
 
Steps to Reproduce
  1. Open the attached project (This project includes a GeometryCollection and NiagaraSystem with a standard setup)
  2. Start PIE
  3. Observe the world origin

Result

Some particles are spawned at the world origin instead of the breaking event location

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-231785 in the post.

0
Login to Vote

Unresolved
ComponentUE - Niagara - Data Interface
Affects Versions5.45.1.15.3.25.5
Target Fix5.6
CreatedNov 29, 2024
UpdatedDec 4, 2024
View Jira Issue