docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Convert

    Convert(Type, byte[])

    Method to convert the text into the object type requested. Usually the text contains a JSON formatted serialized object.

    Declaration
    public virtual object Convert(Type type, byte[] data)
    Parameters
    Type Name Description
    Type type

    The object type the text is converted to.

    byte[] data

    The byte array to be converted.

    Returns
    Type Description
    object

    The converted object.

    In This Article
    Back to top
    Copyright © 2026 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)