What's this?
This project was based in octo-code/webp-unity3d.
I decided that there should be a simpler way and I created unity.webp, a plugin that helps you to use webp in your Unity3d projects in a clear and easy way and works in iOS, Android, Windows, Linux, WebGL projects.
prebuilt library
- prebuilt library are maintained by prebuilt-libwebp
- libwebp version v1.6.0
installation
Choose your preference:
Using OpenUPM installer
Download and install via the Package Installer. No manual registry setup is needed.
Using OpenUPM manually
{
"dependencies": {
"com.netpyoung.webp": "0.3.22"
},
"scopedRegistries": [
{
"name": "OpenUPM",
"url": "https://package.openupm.com",
"scopes": [
"com.netpyoung.webp"
]
}
]
}Using UPM from GitHub and Unity NuGet
{
"dependencies": {
"com.netpyoung.webp": "https://github.com/netpyoung/unity.webp.git?path=unity_project/Assets/unity.webp#0.3.22"
},
}Example
- check Samples/ directory
Demo
WebGL
- WebGL's System.Threading.Tasks async based logic is not stable. If you want to use async based logic for WebGL build, try to use Cysharp/UniTask.
- For WebGL build, this repo copied webmproject/libwebp directly. It will be more cleanable if it can be support prebuilt. But It needs more investigate.
for WebGL testing
- try to use caddyserver for static file server
- and Caddyfile
LICENCE
webp
Ref
- octo-code/webp-unity3d - License: Apache License

