Closed TsFreddie closed 4 months ago
I believe Unity does not serialize readonly fields.
readonly
I've checked in Unity 2022.3.32f using this really simple script.
using UnityEngine; public class Test : MonoBehaviour { public readonly int ReadonlyValue = 1; public int Value = 2; }
Unity:
TriInspector (1.14.0):
Debug (for reference):
I believe Unity does not serialize
readonly
fields.I've checked in Unity 2022.3.32f using this really simple script.
Unity:
TriInspector (1.14.0):
Debug (for reference):