# Is Neighbor3dGrid.SetNumCells just broken on UE4.27.2 ??

**URL:** <https://forums.unrealengine.com/t/is-neighbor3dgrid-setnumcells-just-broken-on-ue4-27-2/731678>\
**Category:** FX\
**Tags:** unreal-engine, bug-report, question\
**Created:** [December 19, 2022, 10:37am UTC](https://forums.unrealengine.com/t/is-neighbor3dgrid-setnumcells-just-broken-on-ue4-27-2/731678 "2022-12-19T10:37:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitinn1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bitinn1](https://forums.unrealengine.com/u/bitinn1)\
**Post date:** [December 19, 2022, 10:37am UTC](https://forums.unrealengine.com/t/is-neighbor3dgrid-setnumcells-just-broken-on-ue4-27-2/731678/1 "2022-12-19T10:37:55Z")

</div>

Hi all,

I believe Neighbor3dGrid.SetNumCells just doesn’t work with UE4.27.2; I tested Context Examples for both UE4.27 and UE5.1, and try to update Neighbor3d’s XYZ cell number on the same example (through the UI or through custom module), UE4 completely ignores my change, while UE5 updates properly.

For example: both screenshots use 4,4,4 as num of cells, you can see UE5 properly subdivide the space into 4x4x4 voxels, while UE4 basically ignores it (still 2x2x2).

UE5

![Screenshot 2022-12-19 183502](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/7/b47c18b1ba5dbc0f7b247db313af6edb7d964706.png)  
 ![Screenshot 2022-12-19 183450](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/1/b913812e54fc1860459c9d6d5aa84b64daf87dff.png)

UE4

![Screenshot 2022-12-19 183607](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/5/e950dff9b75d08312f5495f1a83447c3640fda4a.png)  
 ![Screenshot 2022-12-19 183542](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/f/69f0405c37ec9e5975fc7cd38f95ecfb59bc564c.png)

Can I assume UE4 SetNumCells node and its UI is just broken in 4.27? I haven’t been able to set the number of cells I wanted, even though I have read successful attempts as of 4.25 and 4.26:

> **[Spatial Hashing in Unreal’s Niagara with Neighbor Grid 3D – AliCormack](https://alicormack.com/spatial-hashing-in-unreals-niagara-with-neighbor-grid-3d/)**
>
> How to set up a NeighborGrid3D in Niagara in Unreal Engine, query this data structure for neighbors and grid index, and color particles accordingly.

Also this is my third question on here related to niagara, so far none of my questions were answered; my guess is very few people are actually using these niagara simulation stages, but I am, so hoping for an official answer at some point.

---

<div class="post-metadata">

**Author:** ![bitinn1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bitinn1](https://forums.unrealengine.com/u/bitinn1)\
**Post date:** [December 20, 2022, 2:33am UTC](https://forums.unrealengine.com/t/is-neighbor3dgrid-setnumcells-just-broken-on-ue4-27-2/731678/2 "2022-12-20T02:33:00Z")

</div>

![Screenshot 2022-12-20 102252](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/4/5f4df7003563d46bc4bdb39c79c510082299836b.png)

Found my answer: make sure you checkout Set Resolution Method in deprecated parameter list, it DEFAULTS to Cell Size which also is a deprecated parameter.
