Open huterdev opened 2 years ago
from 57b939e84e340818523ae189e35a43fe533331a8
that function already modified pass readable. https://github.com/netpyoung/unity.webp/blob/57b939e84e340818523ae189e35a43fe533331a8/unity_project/Assets/unity.webp/Runtime/Texture2DExt.cs#L191
There still exists function which make force readable - https://github.com/netpyoung/unity.webp/blob/57b939e84e340818523ae189e35a43fe533331a8/unity_project/Assets/unity.webp/Runtime/Texture2DExt.cs#L335 but I will fix that later
Oh wow, totally missed that! Thanks :)
I found that the texture that is returned from
Texture2DExt.CreateTexture2DFromWebP()
is currently not readable, that left me at my wits end until I figured out that when the texture is applied,makeNoLongerReadable
is set totrue
by default:Setting this to
false
solved my problem. Wouldn't a solution like this be more elegant for cases where the texture needs to remain readable?: