How to make array like this?

Hello

I m making game and i want to have 1 array in script named example: brojvrata
and then when I add object to that array,array “resizes” to add 2 more vector 3 fields for that element which I added earlier.

Image what it looks now.alt text

This is how it is supposed to look like (I photoshoped image).These 2 Vector3 inputs need to be like child of this “Element 0”.When I add next element example “Element 1” I get another 2 Vector3 inputs but for that element

alt text

public class MyComponent : MonoBehaviour
{
public MyClass brojvrata;
[System.Serializable]
public class MyClass
{
public string text;
public Vector3 pozicijaVrata;
public Vector3 starapozicija;

      }
    }

117683-tempimage.png