docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FuzzySearch

    Utility class to perform matching against query text using a fuzzy search algorithm.

    Inheritance
    object
    FuzzySearch
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Search
    Assembly: com.unity.quicksearch.dll
    Syntax
    public static class FuzzySearch

    Methods

    FuzzyMatch(string, string, ref long, List<int>)

    Performs a fuzzy search on a string to see if it matches a pattern.

    Declaration
    public static bool FuzzyMatch(string pattern, string origin, ref long outScore, List<int> matches = null)
    Parameters
    Type Name Description
    string pattern

    Pattern that we try to match the source string

    string origin

    String we are looking into for a match

    long outScore

    Score of the match. A higher score means the pattern is a better match for the string.

    List<int> matches

    List of indices in the source string where a match was found.

    Returns
    Type Description
    bool

    Returns true if a match was found

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)