Hi,
in my code, I have a List of Color arrays as so:
public List<Color[]> cols
I wish to be able to assign these in the inspector, however, the list doesn’t show up on the script.
Any ideas how I can do this?
Any help is greatly appreciated, thanks!
You have to initiate the object and it do not work with a array in a list :
public Color cols = new Color[5];
put it in an array or try to Serialize this property (I am not sure about second solution).
the one in your code is not actually “List of Color” instead it’s “List of Array of Color”
simply fix it by removing the rectangle bracket like this
public List<Color> cols