Version 2.1.0.0

RequireComponentValidator<T> class

Namespace: Sirenix.OdinInspector.Editor.Validation
Assembly: Sirenix.OdinInspector.Editor
public class RequireComponentValidator<T> : ValueValidator<T> where T : Component
Inheritance

Type Parameters

T

Constructors

RequireComponentValidator()
public RequireComponentValidator()

Methods

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

Returns
System.Boolean

Validate(T, ValidationResult)
protected override void Validate(T value, ValidationResult result)
Parameters
T value

ValidationResult result