Access variables in the inspector through a list

So basically I want a list of elements which contain variables (in this case an int and a basic scriptable object) that can be changed through the inspector and through a script. Firstly I tried using a struct and everything was good until I realized that I cant change the values. After that I saw that the best alternative was to make a monobehaviour script but in that case I couldnt change the variables through the inspector and that I also needed to make and add that script to an object. So in short what do I need? I need a struct like solution that lets me change the variables. Thanks in advance!
image