- Home /
Are backing fields and their Attributes now working in Unity?
Simple Question: Does this work in any version of Unity so that I can edit this field in the Inspector?
[field: SerializeField]
public string FullName { get; private set; }
Thanks ;-)
Answer by sisus_co · Nov 16, 2019 at 02:03 PM
It does "work" in the sense that the field is editable in the inspector and serialized by Unity. The only problem is that the name shown in the inspector is not very pretty:
I have created an add-on for Unity that can display these with names matching the property name called Power Inspector. It can even handle arrays and such.

Answer by badadam · Mar 16, 2019 at 04:35 PM
if you make your field public you can edit the field from editor. if you want to make your field private but also want to edit your field from editor you must use [SerializeField] tag just before your perivate field.
public string yourPublicField;
[SerializeField]
private string yourPrivateField;
I know, but the question is if Unity is able to look out for compiled backing Fields and their attributes.^^ (not my -1 btw ;-) )
Your answer