C# Array doesn't appear on Inspector

I have recently converted from JS to C#. I’ve been converting my scripts and everything is working except for arrays that don’t appear on the unity inspector menu. I need them to appear there because I have to change some values manually without modifying the code.

This is one of my arrays (All of them are similar to this one):

public class Currency
{
    public string Name;
    public int Amount; 
    public Texture Icon;
}
public Currency[] Riches;

I have searched in the unity forums and answers about a solution but didn’t get one.

Thanks for your help,
SoumiDelRio

I guess you mean the members are not showing.
Add the attribute:

[System.Serializable]
public class Currency
{
    public string Name;
    public int Amount; 
    public Texture Icon;
}