The Serializable attribute lets you embed a class with sub properties in the inspector.
class Test extends System.Object {
var p = 5;
var c = Color.white;
}
var test = Test ();
// C# Example
[System.Serializable]
class Test
{
public int p = 5;
public Color c = Color.white;
}