docs.unity3d.com
    Show / Hide Table of Contents

    Delegate LoadTextureCallback

    Response callback for for async texture load operations

    Namespace: Unity.MARS.Data
    Syntax
    public delegate void LoadTextureCallback(bool success, long responseCode, Texture2D texture, byte[] payload);
    Parameters
    Type Name Description
    Boolean success

    True if the request succeeded

    Int64 responseCode

    The HTTP response code

    Texture2D texture

    The response payload as a Texture2D, or null if the response failed or the payload is not a valid image

    Byte[] payload

    The raw response payload as a byte[], or the error string as a byte[]

    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