{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method Open | KTX for Unity | 3.2.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Open

    Open(NativeSlice<byte>)

    Loads a texture from memory. Part of the low-level API that provides finer control over the loading process.

    Declaration
    public abstract ErrorCode Open(NativeSlice<byte> data)
    Parameters
    Type Name Description
    NativeSlice<byte> data

    Input texture data

    Returns
    Type Description
    ErrorCode

    Success if loading was successful or an error specific code otherwise.

    See Also
    LoadTexture2D(bool, uint, uint, uint, bool)
    LoadTexture2D(GraphicsFormat, uint, uint, uint, bool)
    Dispose()
    In This Article
    Back to top
    Copyright © 2023 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)