How do I use KTX files in Babylon

On mobile, I use a lot of images, so I want to use texture compression to convert files like PNG or JPG into KTX, but I don’t know how to use it?Loading directly in the material did not work

A forum search for KTX brought up this KTX texture problem - #8 by Vinc3r

with a working PG

Thank you very much for your answer, but in the environment of the React project, Engine does not have setTextureFormatToUse function, do you need to install other dependent environments?q90g

You should upgrade to our latest preview for 4.2 to have the function available in babylon.

Thank you very much