Method OnValidate
OnValidate()
Enforce bounds for fields, when changed in inspector. Call base class implementation at the beginning of overridden method. After base method is called, ValidatingStreamVersion will be valid.
Declaration
protected virtual void OnValidate()