Version 3.0.1.0

PropertySearchFilter class

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector.Editor
public class PropertySearchFilter
Inheritance
  • System.Object
  • PropertySearchFilter

Constructors

PropertySearchFilter()
public PropertySearchFilter()
PropertySearchFilter(InspectorProperty)
public PropertySearchFilter(InspectorProperty property)
Parameters
InspectorProperty property

PropertySearchFilter(InspectorProperty, SearchableAttribute)
public PropertySearchFilter(InspectorProperty property, SearchableAttribute config)
Parameters
InspectorProperty property

SearchableAttribute config

Fields

ExactStringMatcher
protected static readonly Func<string, string, bool> ExactStringMatcher
FilterOptions
public SearchFilterOptions FilterOptions
FuzzyStringMatcher
protected static readonly Func<string, string, bool> FuzzyStringMatcher
MatchFunctionOverride
public Func<InspectorProperty, string, bool> MatchFunctionOverride
Property
public InspectorProperty Property
Recursive
public bool Recursive
searchFieldControlName
protected string searchFieldControlName
SearchResults
public List<SearchResult> SearchResults
SearchTerm
public string SearchTerm
UseFuzzySearch
public bool UseFuzzySearch

Properties

HasSearchResults
public bool HasSearchResults { get; }

Methods

DrawDefaultSearchFieldLayout(GUIContent)
public virtual void DrawDefaultSearchFieldLayout(GUIContent label)
Parameters
UnityEngine.GUIContent label

DrawSearchResult(SearchResult)
public virtual void DrawSearchResult(SearchResult result)
Parameters
SearchResult result

DrawSearchResults()
public virtual void DrawSearchResults()
HasSearchFlag(SearchFilterOptions)
public virtual bool HasSearchFlag(SearchFilterOptions flag)
Parameters
SearchFilterOptions flag

Returns
System.Boolean

IsMatch(InspectorProperty, String)
public virtual bool IsMatch(InspectorProperty property, string searchTerm)
Parameters
InspectorProperty property

System.String searchTerm

Returns
System.Boolean

Search(String)
public virtual List<SearchResult> Search(string searchTerm)
Parameters
System.String searchTerm

Returns
System.Collections.Generic.List<SearchResult>

Search(String, InspectorProperty)
protected virtual IEnumerable<SearchResult> Search(string searchTerm, InspectorProperty property)
Parameters
System.String searchTerm

InspectorProperty property

Returns
System.Collections.Generic.IEnumerable<SearchResult>

UpdateSearch()
public virtual void UpdateSearch()
UpdateSearch(String)
public virtual void UpdateSearch(string searchFilter)
Parameters
System.String searchFilter