Class ShaderStringBuilder | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ShaderStringBuilder

    Inheritance
    System.Object
    ShaderStringBuilder
    Namespace: UnityEditor.ShaderGraph
    Syntax
    public class ShaderStringBuilder : IDisposable

    Constructors

    ShaderStringBuilder()

    Declaration
    public ShaderStringBuilder()

    ShaderStringBuilder(Int32)

    Declaration
    public ShaderStringBuilder(int indentationLevel)
    Parameters
    Type Name Description
    System.Int32 indentationLevel

    Methods

    Append(String)

    Declaration
    public void Append(string value)
    Parameters
    Type Name Description
    System.String value

    Append(String, Int32, Int32)

    Declaration
    public void Append(string value, int start, int count)
    Parameters
    Type Name Description
    System.String value
    System.Int32 start
    System.Int32 count

    Append(String, Object[])

    Declaration
    public void Append(string formatString, params object[] args)
    Parameters
    Type Name Description
    System.String formatString
    System.Object[] args

    AppendIndentation()

    Declaration
    public void AppendIndentation()

    AppendLine(String)

    Declaration
    public void AppendLine(string value)
    Parameters
    Type Name Description
    System.String value

    AppendLine(String, Object[])

    Declaration
    public void AppendLine(string formatString, params object[] args)
    Parameters
    Type Name Description
    System.String formatString
    System.Object[] args

    AppendLines(String)

    Declaration
    public void AppendLines(string lines)
    Parameters
    Type Name Description
    System.String lines

    AppendNewLine()

    Declaration
    public void AppendNewLine()

    AppendSpaces(Int32)

    Declaration
    public void AppendSpaces(int count)
    Parameters
    Type Name Description
    System.Int32 count

    BlockScope()

    Declaration
    public IDisposable BlockScope()
    Returns
    Type Description
    IDisposable

    BlockSemicolonScope()

    Declaration
    public IDisposable BlockSemicolonScope()
    Returns
    Type Description
    IDisposable

    Concat(ShaderStringBuilder)

    Declaration
    public void Concat(ShaderStringBuilder other)
    Parameters
    Type Name Description
    ShaderStringBuilder other

    DecreaseIndent()

    Declaration
    public void DecreaseIndent()

    DecreaseIndent(Int32)

    Declaration
    public void DecreaseIndent(int level)
    Parameters
    Type Name Description
    System.Int32 level

    Dispose()

    Declaration
    public void Dispose()

    IncreaseIndent()

    Declaration
    public void IncreaseIndent()

    IncreaseIndent(Int32)

    Declaration
    public void IncreaseIndent(int level)
    Parameters
    Type Name Description
    System.Int32 level

    IndentScope()

    Declaration
    public IDisposable IndentScope()
    Returns
    Type Description
    IDisposable

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    ToString(Int32, Int32)

    Declaration
    public string ToString(int startIndex, int length)
    Parameters
    Type Name Description
    System.Int32 startIndex
    System.Int32 length
    Returns
    Type Description
    System.String

    ToString(out ShaderSourceMap)

    Declaration
    public string ToString(out ShaderSourceMap sourceMap)
    Parameters
    Type Name Description
    ShaderSourceMap sourceMap
    Returns
    Type Description
    System.String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023