Skip to content

Redundant SerializeField attribute

Matt Ellis edited this page Mar 26, 2018 · 7 revisions

If a field has both [SerializeField] and [NonSerialized] attributes, Unity will ignore the [SerializeField] attribute. This attribute will highlight the [SerializeField] attribute as redundant if both attributes are specified. It also provides an Alt+Enter quick fix to remove the redundant attribute.

Clone this wiki locally