docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ContainsAny

    ContainsAny(string, params string[])

    Checks if a string contains any of the strings given in strings to check and early out if it does

    Declaration
    public static bool ContainsAny(this string input, params string[] stringsToCheck)
    Parameters
    Type Name Description
    string input

    The input string

    string[] stringsToCheck

    List of strings to check

    Returns
    Type Description
    bool

    True if a string contains any of the strings given in strings

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