Namespace: | Sirenix.OdinInspector.Editor.Validation |
Assembly: | Sirenix.OdinInspector.Editor |
public class DefaultValidatorLocator : IValidatorLocator
public DefaultValidatorLocator()
protected readonly Dictionary<Type, int> AttributeNumberMap
public Func<Type, bool> CustomValidatorFilter
public static readonly List<(Type globalValidatorType, Type instantiatorType)> GlobalValidators
public static readonly DefaultValidatorLocator Instance
protected readonly List<TypeSearchResult> ResultList
public static readonly List<(Type sceneValidatorType, Type instantiatorType)> SceneValidators
protected readonly List<TypeSearchResult[]> SearchResultList
public static readonly TypeSearchIndex ValidatorSearchIndex
public virtual GlobalValidator GetGlobalValidator(Type type)
System.Type | type |
GlobalValidator |
public virtual IList<GlobalValidator> GetGlobalValidators()
System.Collections.Generic.IList<GlobalValidator> |
protected List<TypeSearchResult> GetMergedSearchResults(InspectorProperty property)
InspectorProperty | property |
System.Collections.Generic.List<TypeSearchResult> |
public IList<SceneValidator> GetSceneValidators(SceneReference scene)
SceneReference | scene |
System.Collections.Generic.IList<SceneValidator> |
protected List<TypeSearchResult[]> GetSearchResults(InspectorProperty property)
InspectorProperty | property |
System.Collections.Generic.List<TypeSearchResult[]> |
public virtual IList<Validator> GetValidators(InspectorProperty property)
InspectorProperty | property |
System.Collections.Generic.IList<Validator> |
public bool PotentiallyHasValidatorsFor(InspectorProperty property)
InspectorProperty | property |
System.Boolean |
public bool TryGetSceneValidator(SceneReference scene, Type validatorType, out SceneValidator validator)
SceneReference | scene | |
System.Type | validatorType | |
SceneValidator | validator |
System.Boolean |