Show set of variables per item in gameObject array

Hi once more.
Feeling the love for the unity inspector growing everyday.

However my mind is stuck on this one:
Even on how to write the title of this post so I hope it’s all clear enough.

Lets say you have a public gameObject array and you drag in 4 items.
I’d love to have min scale / max scale + the min / max rotation variables to show for each item in the array.
If that is even possible.
I just can’t find what i am looking for, simply because I don’t know where to look :smiley:

In the inspector an ideal display would be:

gameObject A
minscale: .2 maxscale: .5
rotationmin: .5 rotationmax: .8

gameObject B
minscale: .8 maxscale: .9
rotationmin: .5 rotationmax: .8
etc

I thank you for reading this and shedding some tips.
my best regards

You can create a class or struct to hold this information. Make this class/struct Serializable. Now create an array for this information and you can set the values for the gameobject with its minscale, maxscale, rotationmin, and rotationmax.

EDIT: Previously example below was with structs but then replaced it with class based on the comment by @moses below.

Something like:

[System.Serializable]
public class MyData {
	public GameObject go;
	public minscale;
	public maxscale;
	public rotationmin;
	public rotationmax;
}

public MyData[] data;

Now you can set this data array values as you required from the Inspector. To get the exact display you want you need to write a Custom Inspector.

You can also access each of these values by using the index of data array.

E.g. to access the first gameobject use:

Debug.Log(test[0].go);

and to access first minscale use:

Debug.Log(test[0].minscale);