docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ToStringList

    ToStringList(Feature, string)

    Generates a single string representing the list of enabled features separated by separator, or a comma if not specified.

    Declaration
    public static string ToStringList(this Feature features, string separator = ", ")
    Parameters
    Type Name Description
    Feature features

    The Feature being extended.

    string separator

    The string separator to insert between elements of the list, or ", " if omitted.

    Returns
    Type Description
    string

    A string of Features separated by separator. If none of the features are enabled, returns "(None)".

    Remarks

    This method makes several heap allocations, generating garbage. It is intended for debugging purposes and should not be called frequently in a production application.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023