Make public struct as panel (drop down) in the Inspector

Hi!

Why Unity 3d can’t render public struct as drop down panel in the Inspector? It should become something like array does.

public struct foo {
public int a;
public int b;
}

public foo bar;

Should show:

/ bar
a
b

What do you think? If you need backward compatibily just add annotation requirment…

Ok. Never mind. I changed struct to class and added [System.Serializable] annotation. It is described in documentation.
Sorry for bothering…