Version 3.1.7.0

Validator class

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

Constructors

Validator()
protected Validator()

Properties

Property
public InspectorProperty Property { get; }
RevalidationCriteria
public virtual RevalidationCriteria RevalidationCriteria { get; }

Methods

CanValidateProperty(InspectorProperty)
public virtual bool CanValidateProperty(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Boolean

Initialize()
protected virtual void Initialize()
Initialize(InspectorProperty)
public void Initialize(InspectorProperty property)
Parameters
InspectorProperty property

InitializeResult(ref ValidationResult)
public void InitializeResult(ref ValidationResult result)
Parameters
ValidationResult result

OnSceneGuiSelected(ref ResultItem, SceneView)
public virtual void OnSceneGuiSelected(ref ResultItem result, SceneView sceneView)
Parameters
ResultItem result

UnityEditor.SceneView sceneView

RunValidation(ref ValidationResult)
public virtual void RunValidation(ref ValidationResult result)
Parameters
ValidationResult result