docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DownloadArtifact

    DownloadArtifact<TArtifactType>(Artifact<TArtifactType>, Action<object, string>)

    Download texture image from the Cloud

    Declaration
    public static UnityWebRequestAsyncOperation DownloadArtifact<TArtifactType>(Artifact<TArtifactType> artifact, Action<object, string> onDone)
    Parameters
    Type Name Description
    Artifact<TArtifactType> artifact

    The typed artifact identifier to request

    Action<object, string> onDone

    Callback called when results are received. Callback parameters (Texture2D, byte[], string) represent received Texture2D object, it's original byte stream as PNG file and error string. In case error occured error string is non-null and other parameters are null

    Returns
    Type Description
    UnityWebRequestAsyncOperation

    The the reference to the async operation this generates so that it may be cancelled

    Type Parameters
    Name Description
    TArtifactType
    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