Version: 2021.2
LanguageEnglish
  • C#

FuzzySearch

class in UnityEditor.Search

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides a method to match query text using a fuzzy search algorithm.

This utility class implements the text search functions using approximate string matching (fuzzy search). Search for a text pattern in a given string. If there is a match, get the match score. Get the indices in the string where the pattern was found.

See FuzzyMatch for a complete example.

Static Methods

FuzzyMatchPerforms a fuzzy search for a pattern on a string.