Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

useKtx2

useKtx2(url): Texture

A KTX2 texture for a material’s map, transcoded by three’s Basis transcoder, which the game’s build serves as it does the Draco decoder. Suspends while it loads; the texture is cached by URL and shared, so a change to its wrapping or repeat changes it for every material. Headless, it is a blank texture and nothing loads.

Parameter Type
url string

Texture