How do I get a list of all the properties of a class?
Based on @MarcGravell's answer, here's a version that works in Unity C#.
ObjectsClass foo = this; foreach(var prop in foo.GetType().GetProperties()) { Debug.Log("{0}={1}, " + prop.Name + ", " + prop.GetValue(foo, null)); }