I have a bunch of properties (with getters and setters) that I want to group together in the inspector. (This is from Photon Fusion.)
[Header("Networked Properties")] // Drat; does not work with properties
[Networked] public string displayName { get; set; }
[Networked] public Vector3 headLocalPos { get; set; }
[Networked] public Quaternion headLocalRot { get; set; }
But this doesn’t work; I get a “not valid on this declaration type” error. It appears that PropertyAttributes like this actually work only on fields, not properties.
I tried adding a hidden (by making it private or adding [HideInInspector]) field at the top of the block, but of course the Header attribute is ignored in that case.
Anybody know a clever trick, workaround, or alternative that would let me add a header in the inspector for my get/set properties?