docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateFromData

    CreateFromData(byte[], bool)

    Takes binary data and will attempt to deserialize it into its concrete Unity representation. Concrete implementations will throw exceptions or handle malformed incoming data

    Declaration
    protected override Texture2D CreateFromData(byte[] data, bool updateCache)
    Parameters
    Type Name Description
    byte[] data

    Binary data from backend, file, etc, to be deserialized

    bool updateCache

    When true update the local system's cached state of the artifact. false skips the update

    Returns
    Type Description
    Texture2D
    Overrides
    Artifact<Texture2D>.CreateFromData(byte[], bool)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023