Version 2.1.0.0

RequiredValidator class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public class RequiredValidator : AttributeValidator<RequiredAttribute>, IAttributeValidator
Inheritance

Constructors

RequiredValidator()
public RequiredValidator()

Methods

Initialize(MemberInfo, Type)
public override void Initialize(MemberInfo member, Type memberValueType)
Parameters
System.Reflection.MemberInfo member

System.Type memberValueType

Validate(Object, Object, MemberInfo, ValidationResult)
protected override void Validate(object parentInstance, object memberValue, MemberInfo member, ValidationResult result)
Parameters
System.Object parentInstance

System.Object memberValue

System.Reflection.MemberInfo member

ValidationResult result

This website is brand new and built with the Odin 2.1 beta in mind. This means you might discover some features such as attribute expressions that are only available in the beta.

You can download the 2.1 beta from here and read the patch-notes here.