Version 2.1.0.0

DefaultValidatorLocator.BrokenAttributeValidator class

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

Constructors

BrokenAttributeValidator(Type, ValidationKind, String)
public BrokenAttributeValidator(Type brokenValidatorType, ValidationKind kind, string message)
Parameters
System.Type brokenValidatorType

ValidationKind kind

System.String message

Methods

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

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

RunMemberValidation(Object, MemberInfo, Object, Object, ref ValidationResult)
public override 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 override void RunValueValidation(object value, Object root, ref ValidationResult result)
Parameters
System.Object value

UnityEngine.Object root

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.