API reference

OVRKtxTexture Class

Helper class that loads KTX2 textures contained within GLTF (GL Transmission Format) models.
This requires that the GLTF model supports the KHR_texture_basisu extension. Check the KHR_texture_basisu extension page for more details.

Static Methods

Load ( data , ktxData )
Loads the given KTX2 texture data, as well as metadata, into a given OVRTextureData struct.
Signature
static bool Load(byte[] data, ref OVRTextureData ktxData)
Parameters
data: byte[]  Binary data that represents the KTX2 texture.
ktxData: ref OVRTextureData  Output data for the KTX2 texture.
Returns
bool  True if the loading of the KTX2 texture was successful, otherwise false.