Multiple data type arrays

Hi guys. My problem is as follows:

Using blueprints I want to create an array of letters where each letter also has a number/point value assigned to it. Much like in Scrabble where A = 1, Z = 10, X = 8, etc. I also want to attach a boolean value to set it as mandatory or not. The only thing I am struggling with is how to store and access the three different types of data when I know that arrays can only hold one data type at once. So I essentially need to set, save and retrieve data of Int, Bool and String for each array item.

Would structs be useful here to store the multiple data types? Any help would be appreciated.

Simply create a wrapper blueprint (or struct) that houses the multiple data types you want and have the array hold that wrapper data type.

Depending on what you’re doing structs would be the right option but it really depends on the use case. I would suggest, based on what you have here, to start with a struct and expand/refactor from there if you need to

Thanks! I actually created a struct and put the 3 values in (bool, int, string). I then created an array and added items to it manually. Seeing as they are set values that I am not going to need to change this worked well.

Glad to hear it worked! I have changed my comment to an answer