Damn! you’re right, I forgot it.
thank you @tonemcbride
Is there a way to load it without setting the width height and DXT(DXT1 or DXT5) ?
This information is contained within the file; for DDS (not crunched) i can read the header bytes and get this informations in a fairly simple way but for crn…
I think crunched files just have the raw data without headers but I’m not certain, someone else here might know? You could always add a width/height to the file that you’re downloading and read that in before creating the texture 2d?
Now I have a bigger problem. Load dxt1/5 crunch texture with LoadrawTexturedata works in the editor, in standalone PC version but not in WebGL.
These are the errors in the console:
I am having a similar problem. When I try to (at runtime) load Crunch textures from Unity’s fork of Crunch, they appear like this. (this is all in version 2017.2 or below, btw. As of 6/6/2018 crunch textures won’t open at all with version 2017.3 or above.)
However, when I load crunch textures from the “vanilla” version of Crunch by Binomial, they appear just fine.
It’s unfortunate, because Unity creates Crunch textures roughly 5 to 6 times faster than vanilla.