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 © 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)