docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ReplaceInvalidFileNameCharacters

    ReplaceInvalidFileNameCharacters(string, string)

    Replaces invalid characters for a filename or a directory with a given optional replacemenet string

    Declaration
    public static string ReplaceInvalidFileNameCharacters(this string input, string replacement = "_")
    Parameters
    Type Name Description
    string input

    The input filename or directory

    string replacement

    The replacement

    Returns
    Type Description
    string

    The string with the invalid characters replaced

    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)