# How to Pass an Array of Floats, into a Material

**URL:** <https://forums.unrealengine.com/t/how-to-pass-an-array-of-floats-into-a-material/387796>\
**Category:** Rendering\
**Tags:** unreal-engine, Array, question\
**Created:** [March 13, 2017, 1:58pm UTC](https://forums.unrealengine.com/t/how-to-pass-an-array-of-floats-into-a-material/387796 "2017-03-13T13:58:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_08787d181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08787d181](https://forums.unrealengine.com/u/anonymous_user_08787d181)\
**Post date:** [March 13, 2017, 1:58pm UTC](https://forums.unrealengine.com/t/how-to-pass-an-array-of-floats-into-a-material/387796/1 "2017-03-13T13:58:56Z")

</div>

I am trying to build a material that looks into an indexed array for the particular alpha value I need for my material.

Different instance of the material will use different Arrays of Floats. How do I create an array of floats in the material, or even a int array.

---

<div class="post-metadata">

**Author:** ![Deathrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Deathrey](https://forums.unrealengine.com/u/Deathrey)\
**Post date:** [March 17, 2017, 10:18am UTC](https://forums.unrealengine.com/t/how-to-pass-an-array-of-floats-into-a-material/387796/2 "2017-03-17T10:18:17Z")

</div>

You can use texture for that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_08787d181](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_08787d181](https://forums.unrealengine.com/u/anonymous_user_08787d181)\
**Post date:** [March 17, 2017, 12:15pm UTC](https://forums.unrealengine.com/t/how-to-pass-an-array-of-floats-into-a-material/387796/3 "2017-03-17T12:15:14Z")

</div>

Yeah I ended up using FLinearColor instead of FColor to programmatically create a texture that represented my array.

---

<div class="post-metadata">

**Author:** ![dazzilton1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dazzilton1](https://forums.unrealengine.com/u/dazzilton1)\
**Post date:** [September 27, 2025, 7:17pm UTC](https://forums.unrealengine.com/t/how-to-pass-an-array-of-floats-into-a-material/387796/4 "2025-09-27T19:17:48Z")

</div>

How, please?
