Method OnValidate OnValidate() Implement for behaviour on property data change. Declaration public virtual void OnValidate()