docs.unity.cn
    Show / Hide Table of Contents

    Class StringExtensions

    Set of utility functions with String

    Inheritance
    Object
    StringExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Rendering
    Syntax
    public static class StringExtensions

    Methods

    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

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 21 July 2023