Greetings,
I am noticing that private fields decorated with [SerializeField]
are being used over public fields. In the late past (Unity 4) I recall it was always use a public variable. I looked up [SerializeField]
when I first encountered it here and see that it allows private variables to be exposed to the Inspector. So is the preference now to use private variables with [SerializeField]
so other objects are unable to change those values? Just wondering on this new paradigm.
Thank you,
Brett