Niagara Neighbor Grid3D linear index number issue

I’m having some problem with the Niagara Neighbor Grid3D. My Niagara system contains 3 emitters:

  • First emitter spawns random particles
  • Second emitter also spawns random particles but on different position
  • Third emitter samples a neighbor grid3d which was initialized in system update, get particles from 1st and 2nd emitter as pairs (source - target) and fetch their position to the grid3D to filter only pairs that are in the same cell.

The problem is, when I tried to get the linear index of particles base on position, it returns really big numbers even when the grid3D is 2x2x2. The attributes are “SourceLinearIndex” and “TargetLinearIndex” in the image below.


When I tried the same thing on the Sample Project of Unreal Engine 5, the result is correct (the attribute is “TestIndex”).


I really appreciate some help to figure out the problem here, not sure if there is something wrong in the script or my set up for the grid3D is incorrect. Thank you!