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.

–

1 Answer

1

If the property is a class or a generic collection it wont show up.