# Passing Niagara Array to Blueprint : Niagara Get Int32 Array not working

**URL:** <https://forums.unrealengine.com/t/passing-niagara-array-to-blueprint-niagara-get-int32-array-not-working/253961>\
**Category:** FX\
**Tags:** unreal-engine, UE4-26, Blueprint\
**Created:** [October 4, 2021, 3:49am UTC](https://forums.unrealengine.com/t/passing-niagara-array-to-blueprint-niagara-get-int32-array-not-working/253961 "2021-10-04T03:49:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![32Bit\_Badman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@32Bit\_Badman](https://forums.unrealengine.com/u/32Bit_Badman)\
**Post date:** [October 4, 2021, 3:49am UTC](https://forums.unrealengine.com/t/passing-niagara-array-to-blueprint-niagara-get-int32-array-not-working/253961/1 "2021-10-04T03:49:35Z")

</div>

Hi everyone,

I am trying to implement a marching cubes algorithm in Niagara, and I am struggling to export my calculated triangles from Niagara to my blueprint where I pass them to a procedural mesh component.

While doing research, I came across the “Niagara Get Int32 Array” Blueprint Node, but I cannot seem to get it to work. The only way I can get any valid results is when I try and retrieve a User Int Array. This sadly is of no use for me since I cannot set the Array to any values inside the Niagara System.  
I am also aware of passing Particle Data, via Basic Particle Data Export, but this does not support Arrays.

 ![SystemTestInt](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/0/b0040339521218f6a13c4b4311033851f165233f.png)  
This prints the value 0 ( 4 is expected)

 ![EmitterTestInt](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/9/995ad63a143179272b9790a9611f33bc8b2c6051.png)  
This prints the value 0 ( 4 is expected)

 ![UserTestInt](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/9/893cbc64c85884d9ba90b777fcb10f3bfb38c98c.png)  
This prints the value 4 as expected

Here my System as a referance

 ![SystemTest](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/9/19b2aadce425228db14421d3f424a3466d4de512.png)

My Question is how do I use this node correctly? Is there a way to retrieve Niagara Arrays from a Blueprint ? Or will I have to write it to a Texture and sample it with a Shader?

Any Help would be much appreciated, since the documentation is lacking heavily in this area

---

<div class="post-metadata">

**Author:** ![Ey4D0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ey4D0](https://forums.unrealengine.com/u/Ey4D0)\
**Post date:** [December 2, 2021, 11:45am UTC](https://forums.unrealengine.com/t/passing-niagara-array-to-blueprint-niagara-get-int32-array-not-working/253961/2 "2021-12-02T11:45:26Z")

</div>

Hi,  
I am running into similar issue, setting User Array Input via blueprint. Have you found a solution?

---

<div class="post-metadata">

**Author:** ![32Bit\_Badman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@32Bit\_Badman](https://forums.unrealengine.com/u/32Bit_Badman)\
**Post date:** [December 2, 2021, 12:13pm UTC](https://forums.unrealengine.com/t/passing-niagara-array-to-blueprint-niagara-get-int32-array-not-working/253961/3 "2021-12-02T12:13:58Z")

</div>

Hi,

as my question states, it is only possible to set and modify \*User exposed \* arrays. Anything in the _System, Emitter and Particle_ Namespace is read only for blueprint. There are two ways to get variables from Niagara Systems, either through using the _Export Particle Data_ module ( see content examples Niagara Advanced map for usage, limited only to two vectors and a scalar parameter) or through using _GridCollections_ . The latter can be used to store and manipulate data, which can then be encoded to a _RenderTexture_ during runtime. The texture can then be read by a shader or a blueprint. The caveat here is that the blueprint function _ReadRenderTargetPixel_ is horribly slow and inefficient and blocks the main render thread, so I would write my own function or try and create a compute shader to parse incoming data.

I hope this helps somehow, if you need further clarification, just let me know.

Regards,  
32bit\_badman
