How to make an array with different variables and visible in Unity's inspector

I do have make some array with different variable but the array is not visible to unity’s inspector even I make it public variable. How to make it visible?

here is my code:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class test : MonoBehaviour
{
    public Droid[] DroidData;
    public class Droid
    {
        public string Name;
        public float Durability;
        public float Firerate;
        public int Price;
    }
}

I don’t know why you deleted your previous question and then reposted the same one, but
as I said before, you have to add the Serializable attribute to your Droid class.

 [Serializable]
 public class Droid
 {
     public string Name;
     public float Durability;
     public float Firerate;
     public int Price;
 }