docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HasExtension

    HasExtension(string, string)

    Checks if the given string ends with the given extension

    Declaration
    public static bool HasExtension(this string input, string extension)
    Parameters
    Type Name Description
    string input

    The input string

    string extension

    The extension

    Returns
    Type Description
    bool

    True if the extension is found on the string path

    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)