docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetadataContainerExtension

    Provides extension behavior utilities for MetadataContainer classes.

    Inheritance
    object
    MetadataContainerExtension
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Core.Utilities
    Assembly: solution.dll
    Syntax
    public static class MetadataContainerExtension

    Methods

    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 © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)