Builtin Array of different data types to Inspector?

Hello Unity Community!

I’m trying to build a simple inspector tool that involves duplication of multiple data types at the click of a button. So for example I need:

String

GameObject

Int

In the Inspector for ease of editing. So essentially I will be able to change the size of the array in editor and keep adding Data Blocks of Strings, GameObjects and Ints to my hearts desire.

I’m wondering how to go about this. I tried to be smart by scripting a builtin array of ArrayLists but of-course that failed miserably.

Any help will be greatly appreciated!

Create a new class, use that:

class Multitype {
  var x : int;
  var y : String;
  var z : GameObject;
}

var things : Multitype[];