Version 3.3.1.2

DefaultValidatorLocator class

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

Constructors

DefaultValidatorLocator()
public DefaultValidatorLocator()

Fields

AttributeNumberMap
protected readonly Dictionary<Type, int> AttributeNumberMap
CustomValidatorFilter
public Func<Type, bool> CustomValidatorFilter
GlobalValidators
public static readonly List<(Type globalValidatorType, Type instantiatorType)> GlobalValidators
Instance
public static readonly DefaultValidatorLocator Instance
ResultList
protected readonly List<TypeSearchResult> ResultList
SceneValidators
public static readonly List<(Type sceneValidatorType, Type instantiatorType)> SceneValidators
SearchResultList
protected readonly List<TypeSearchResult[]> SearchResultList
ValidatorSearchIndex
public static readonly TypeSearchIndex ValidatorSearchIndex

Methods

GetGlobalValidator(Type)
public virtual GlobalValidator GetGlobalValidator(Type type)
Parameters
System.Type type

Returns
GlobalValidator

GetGlobalValidators()
public virtual IList<GlobalValidator> GetGlobalValidators()
Returns
System.Collections.Generic.IList<GlobalValidator>

GetMergedSearchResults(InspectorProperty)
protected List<TypeSearchResult> GetMergedSearchResults(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Collections.Generic.List<TypeSearchResult>

GetSceneValidators(SceneReference)
public IList<SceneValidator> GetSceneValidators(SceneReference scene)
Parameters
SceneReference scene

Returns
System.Collections.Generic.IList<SceneValidator>

GetSearchResults(InspectorProperty)
protected List<TypeSearchResult[]> GetSearchResults(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Collections.Generic.List<TypeSearchResult[]>

GetValidators(InspectorProperty)
public virtual IList<Validator> GetValidators(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Collections.Generic.IList<Validator>

PotentiallyHasValidatorsFor(InspectorProperty)
public bool PotentiallyHasValidatorsFor(InspectorProperty property)
Parameters
InspectorProperty property

Returns
System.Boolean

TryGetSceneValidator(SceneReference, Type, out SceneValidator)
public bool TryGetSceneValidator(SceneReference scene, Type validatorType, out SceneValidator validator)
Parameters
SceneReference scene

System.Type validatorType

SceneValidator validator

Returns
System.Boolean