docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FindSimilarKey

    FindSimilarKey(string, out int)

    Returns the SharedTableData.SharedTableEntry that is the most similar to the text. Uses the Levenshtein distance method.

    Declaration
    [Obsolete("FindSimilarKey will be removed in the future, please use Unity Search. See TableEntrySearchData class for further details.")]
    public SharedTableData.SharedTableEntry FindSimilarKey(string text, out int distance)
    Parameters
    Type Name Description
    string text

    The text to match against.

    int distance

    The number of edits needed to turn text into the returned SharedTableData.SharedTableEntry, 0 being an exact match.

    Returns
    Type Description
    SharedTableData.SharedTableEntry

    The SharedTableData.SharedTableEntry that is the most similar to the text or null if one could not be found.

    In This Article
    Back to top
    Copyright © 2024 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)