docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MostMatch

    MostMatch(IEnumerable<string>, Func<string, bool>, float)

    Determines whether most items satisfy a predicate.

    Declaration
    public static bool MostMatch(IEnumerable<string> paths, Func<string, bool> predicate, float minRatio = 0.75)
    Parameters
    Type Name Description
    IEnumerable<string> paths

    Items to evaluate.

    Func<string, bool> predicate

    Predicate used for matching.

    float minRatio

    Minimum ratio of matches required.

    Returns
    Type Description
    bool

    True when the ratio of matches meets or exceeds the threshold.

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