{!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} Class TextureBase | KTX for Unity | 3.2.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TextureBase

    Loads a KTX or Basis Universal texture from the StreamingAssets folder, a URL, or a buffer.

    Inheritance
    object
    TextureBase
    BasisUniversalTexture
    KtxTexture
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: KtxUnity
    Assembly: solution.dll
    Syntax
    public abstract class TextureBase

    Methods

    Name Description
    Dispose()

    Releases all resources. Part of the low-level API that provides finer control over the loading process.

    GetStreamingAssetsUrl(string)

    Converts a relative sub path within StreamingAssets and creates an absolute URI from it. Useful for loading via UnityWebRequests.

    LoadFromBytes(NativeSlice<byte>, bool, uint, uint, uint, bool)

    Loads a KTX or Basis Universal texture from a buffer

    LoadFromBytes(NativeSlice<byte>, GraphicsFormat, uint, uint, uint, bool)

    Loads a KTX or Basis Universal texture from a buffer

    LoadFromStreamingAssets(string, bool, uint, uint, uint, bool)

    Loads a KTX or Basis Universal texture from the StreamingAssets folder see https://docs.unity3d.com/Manual/StreamingAssets.html

    LoadFromStreamingAssets(string, GraphicsFormat, uint, uint, uint, bool)

    Loads a KTX or Basis Universal texture from the StreamingAssets folder see https://docs.unity3d.com/Manual/StreamingAssets.html

    LoadFromUrl(string, bool, uint, uint, uint, bool)

    Loads a KTX or Basis Universal texture from a URL

    LoadFromUrl(string, GraphicsFormat, uint, uint, uint, bool)

    Loads a KTX or Basis Universal texture from a URL

    LoadTexture2D(bool, uint, uint, uint, bool)

    Creates a Texture2D from the previously opened texture. Transcodes or decodes the texture into a GPU compatible format (if required) and uploads it to GPU memory. Part of the low-level API that provides finer control over the loading process.

    LoadTexture2D(GraphicsFormat, uint, uint, uint, bool)

    Creates a Texture2D from the previously opened texture. Transcodes or decodes the texture into a desired GPU compatible format (if required) and uploads it to GPU memory. Part of the low-level API that provides finer control over the loading process.

    Open(NativeSlice<byte>)

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

    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)