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

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.