docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StringExtensions

    Set of utility functions with string

    Inheritance
    object
    StringExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Rendering
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    public static class StringExtensions

    Methods

    Name Description
    ContainsAny(string, params string[])

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

    HasExtension(string, string)

    Checks if the given string ends with the given extension

    ReplaceInvalidFileNameCharacters(string, string)

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

    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)