Array of multiple vector sets per slot?

Hey all! Have a question for you.

Wanting to set a series of RGB variables to affect a set of materials. I could either set up three different arrays, each having a preset vector value, such that Properties 1, 2 & 3 would be held inside of Arrays 1, 2, 3. But ideally, to save on setting up each array and having to GET a property each time, it would be awesome to set Properties 1, 2, 3 as a single line in an array, such that I would have only one array and each slot in the array would contain a string of properties 1, 2, 3.

Is there an easy way I could put these into an array? Perhaps an array of Strings or Text and then some kind of way to break them into their individual vector components? Not sure how I’d write the string, though, would it be like “x,y,z / x,y,z / x,y,z” where each slash represents Property 1 / Property 2 / Property 3 and then I’d use some string editing to separate out each set between a ‘/’ and then break into components? Obviously I’d have to use the same string convention for each to make sure it can separate correctly.

But perhaps I’m overthinking it. Any better solution for storing multiple sets of value information in one slot?

Hi. You can use a Custom blueprint structure asset

131314-custombs.png

You can define slots you need inside this asset, and then use this asset as a type for array.

First of all: I would not use strings for this, but numbers. You can just use a normal vector, which already has 3 members X, Y and Z. If you are in a material graph all the colours get represented by 3 or 4 dimensional vectors, so it is only logical to use them. All you need is an array of vectors and youll be fine. No need to do any costly and complicated string manipulations.

So yeah, you were overthinking it. Good you asked :smiley: