Version 2.1.0.0

TypeSearchIndex class

Namespace: Sirenix.OdinInspector.Editor.TypeSearch
Assembly: Sirenix.OdinInspector.Editor
public sealed class TypeSearchIndex
Inheritance
  • System.Object
  • TypeSearchIndex

Constructors

TypeSearchIndex(Boolean, Boolean)
public TypeSearchIndex(bool addDefaultValidationRules = true, bool addDefaultMatchRules = true)
Parameters
System.Boolean addDefaultValidationRules

System.Boolean addDefaultMatchRules

Fields

IndexingRules
public List<TypeMatchIndexingRule> IndexingRules
LogInvalidTypeInfo
public Action<string, TypeSearchInfo> LogInvalidTypeInfo
MatchedTypeLogName
public string MatchedTypeLogName
MatchRules
public List<TypeMatchRule> MatchRules

Methods

AddDefaultIndexingRules()
public void AddDefaultIndexingRules()
AddDefaultMatchRules()
public void AddDefaultMatchRules()
AddIndexedType(TypeSearchInfo)
public void AddIndexedType(TypeSearchInfo typeToIndex)
Parameters
TypeSearchInfo typeToIndex

AddIndexedTypes(IEnumerable<TypeSearchInfo>)
public void AddIndexedTypes(IEnumerable<TypeSearchInfo> typesToIndex)
Parameters
System.Collections.Generic.IEnumerable<TypeSearchInfo> typesToIndex

ClearResultCache()
public void ClearResultCache()
GetCachedMergedQueryResults(List<TypeSearchResult[]>)
public static TypeSearchResult[] GetCachedMergedQueryResults(List<TypeSearchResult[]> results)
Parameters
System.Collections.Generic.List<TypeSearchResult[]> results

Returns
TypeSearchResult[]

GetMatches(Type)
public TypeSearchResult[] GetMatches(Type target)
Parameters
System.Type target

Returns
TypeSearchResult[]

GetMatches(Type, Type)
public TypeSearchResult[] GetMatches(Type target1, Type target2)
Parameters
System.Type target1

System.Type target2

Returns
TypeSearchResult[]

GetMatches(Type[])
public TypeSearchResult[] GetMatches(params Type[] targets)
Parameters
System.Type[] targets

Returns
TypeSearchResult[]

MergeQueryResultsIntoList(List<TypeSearchResult[]>, List<TypeSearchResult>)
public static void MergeQueryResultsIntoList(List<TypeSearchResult[]> results, List<TypeSearchResult> mergeIntoList)
Parameters
System.Collections.Generic.List<TypeSearchResult[]> results

System.Collections.Generic.List<TypeSearchResult> mergeIntoList

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.