C#6 Serializefield is not working with getter and setter

Hello All,

I just enabled c#6 with 2017.3.b6. and define a simple property.

[SerializeField]
public bool enableActionAfterAttack { get; internal set; } = false;

Getter and setter is working perfectly but the property is not available in editor. Do you know where can be the problem?

Because a property is not a field. Unity’s serializer never supported serializing properties

In newer versions of C# you can now solve this by using

[field:SerializeField] public int someNumber { get; private set; } = 10;