docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ToFormattedString

    ToFormattedString(MetadataContainer, int, int)

    Converts a MetadataContainer and its children format to prettified JSON.

    Declaration
    public static string ToFormattedString(this MetadataContainer metadataContainer, int indentation = 4, int level = 0)
    Parameters
    Type Name Description
    MetadataContainer metadataContainer

    The metadata container root.

    int indentation

    The amount of spaces for the indents. Default is 4.

    int level

    The current level of the metadata container. Default is 0.

    Returns
    Type Description
    string

    The prettified JSON of the metadata container.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, November 15, 2023