- Home /
Inspecting C# Properties with Unity 3.4
I have some private fields that are exposed with public properties, in C#. I could have sworn that with Unity 3.3, the public properties showed up in the inspector. It doesn't seem to be occurring anymore with Unity 3.4. Does that make sense to anybody?
Properties (in the C# sense) never show in the Inspector, only fields. In Inspector Normal mode, only public fields are shown, in Debug mode, privates are also shown (but can't be edited).
Some caveats apply -- see SerializeField, Nonserialized, and HideInInspector attributes for exceptions. Also, if you create a custom editor, you can show anything you like in the Inspector.
Answer by Talimar · Aug 24, 2011 at 04:07 AM
If the property is a class or a generic collection it wont show up.
Ah, yeah, $$anonymous$$e are List<>'s. Is that a new behavior? I could have sworn it worked in 3.3...
Your answer