docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ToDictionary

    ToDictionary()

    Converts this object to a JSON ready dictionary.

    Declaration
    public Dictionary<string, object> ToDictionary()
    Returns
    Type Description
    Dictionary<string, object>

    Returns a dictionary containing this object's data.

    Implements
    IDictionaryConvertible.ToDictionary()
    Remarks

    Avoid to use reflection here or this will strongly impact GameFoundation's Json serialization performances.

    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)