See variable of class in another class in Editor

I’m not sure if the title makes sense, but I think its easier to see.

I have a Stat class:

public class Stat
{
    public float value { get; private set; }

    private float minVal;
    private float maxVal;

    public Stat(float value, float minVal, float maxVal)
    {
        this.value = value;
        this.minVal = minVal;
        this.maxVal = maxVal;
    }

    public void SetValue(float value)
    {
         //stuff here
    }
}

and I have a CharacterStats class:

public class CharacterStats : MonoBehaviour
{
    public GameObject character;

    //Non - Evolvable Stats
    public Stat health = new Stat(100, 0, 100);
    public Stat saturation = new Stat(100, 0, 100);
    public Stat thirst = new Stat(100, 0, 100);
    public Stat temperature = new Stat(0, -100, 100);

    //Other irrelevant stats n methods are here too
}

I want to see my health, saturation, thirst, and temperature in the editor. But when I go to look at them this is what I see: 163261-stats.png

It doesn’t show, how to fix? I just want to see the Stat Values.

Add [System.Serializable] to your Stat class:

[System.Serializable]
public class Stat 
{
...
}