Method OnValidate OnValidate() Enforce bounds for fields, when changed in inspector. Declaration protected void OnValidate()