Version: 2021.1

FuzzySearch

class in UnityEditor.Search

切换到手册

描述

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.

静态函数

FuzzyMatchPerforms a fuzzy search for a pattern on a string.