We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See https://stackoverflow.com/questions/75050788/how-to-create-webp-image-file-from-url-in-unity/75056837#75056837
In CreateTexture2DFromWebP you are using
lTexture2D.Apply(lMipmaps, true);
which prevents later read/write on that texture.
You could have a parameter
public static unsafe Texture2D CreateTexture2DFromWebP(byte[] lData, bool lMipmaps, bool lLinear, out Error lError, bool isReadWriteEnabled = false, ScalingFunction scalingFunction = null )
and then use
lTexture2D.Apply(lMipmaps, !isReadWriteEnabled);
so users can still keep it enabled if they want/need to.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See https://stackoverflow.com/questions/75050788/how-to-create-webp-image-file-from-url-in-unity/75056837#75056837
In CreateTexture2DFromWebP you are using
which prevents later read/write on that texture.
You could have a parameter
and then use
so users can still keep it enabled if they want/need to.
The text was updated successfully, but these errors were encountered: