i want to make an array that looks like this image but cannot work out how to get for example a gameobject and an int into one element of an array.

i want to make an array that looks like this image but cannot work out how to get for example a gameobject and an int into one element of an array.

C# is ObjectOrientedProgramming.
Meaning classes/scripts can be used as if they were Types like the GameObject Type
So the answer is remove MonoBahavior from you dataHolding class
public class Recipe : MonoBehavior
{
[SerializeField] public Requirements []; //<< hold extra fields
}
[System.Serializable]
public class Requirements
{
[SerializeField] public Item item; //< also a data class like Requirements.cs
[SerializeField] public Int quantity;
}
I hope this helps, if you accept this answer please up vote it to help others facing the same issue find it easier.