How to Pass an Array of Floats, into a Material

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.

You can use texture for that.

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