Version 2.1.0.0

Validator class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public abstract class Validator
Inheritance
  • System.Object
  • Validator

Constructors

Validator()
protected Validator()

Properties

RevalidationCriteria
public virtual RevalidationCriteria RevalidationCriteria { get; }

Methods

CanValidateMember(MemberInfo, Type)
public virtual bool CanValidateMember(MemberInfo member, Type memberValueType)
Parameters
System.Reflection.MemberInfo member

System.Type memberValueType

Returns
System.Boolean

CanValidateMembers()
public virtual bool CanValidateMembers()
Returns
System.Boolean

CanValidateValue(Type)
public virtual bool CanValidateValue(Type type)
Parameters
System.Type type

Returns
System.Boolean

CanValidateValues()
public virtual bool CanValidateValues()
Returns
System.Boolean

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

System.Type memberValueType

Initialize(Type)
public virtual void Initialize(Type type)
Parameters
System.Type type

RunMemberValidation(Object, MemberInfo, Object, Object, ref ValidationResult)
public virtual void RunMemberValidation(object parentInstance, MemberInfo member, object memberValue, Object root, ref ValidationResult result)
Parameters
System.Object parentInstance

System.Reflection.MemberInfo member

System.Object memberValue

UnityEngine.Object root

ValidationResult result

RunValueValidation(Object, Object, ref ValidationResult)
public virtual void RunValueValidation(object value, Object root, ref ValidationResult result)
Parameters
System.Object value

UnityEngine.Object root

ValidationResult result