How to get a List of Color Arrays?

Hi,

Is it possible to get a list of colour arrays: List<Color[]> cols to be able to assign in the inspector?

I am making a game where you can buy new colours and when you click one in the shop, it assigns the colour to some sprites. However, some of the shop items are multiple colours, so I need to store several arrays of colours in a list.

Any help is greatly appreciated, thanks.

Sorry I can’t test my theory. But I believe you can use a custom inspector with the EditorGUILayout.ColorField to pick a series of color options store them in an array/list. I have used the ColorField before to select a color, I just have not tried to store it as a list.

Yes it’s possible, use a custom inspector.

List<List<Color>> might be easier to work with than List<Color[]>. Up to you though.