Version 3.3.1.2

RootObjectValidator<TValue> class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public abstract class RootObjectValidator<TValue> : ValueValidator<TValue>, IValidator, DefaultValidatorLocator.IValueValidator_InternalTemporaryHack where TValue : Object
Inheritance

Type Parameters

TValue

Constructors

RootObjectValidator()
protected RootObjectValidator()

Properties

Object
public TValue Object { get; }
Value
public TValue Value { get; set; }

Methods

CanValidateObject(TValue)
protected virtual bool CanValidateObject(TValue obj)
Parameters
TValue obj

Returns
System.Boolean

CanValidateProperty(InspectorProperty)
public override sealed bool CanValidateProperty(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Boolean

CanValidateRootProperty(InspectorProperty)
protected virtual bool CanValidateRootProperty(InspectorProperty rootProperty)
Parameters
InspectorProperty rootProperty

Returns
System.Boolean

Validate(ValidationResult)
protected override void Validate(ValidationResult result)
Parameters
ValidationResult result