netpyoung / unity.webp

:art: WebP made easy for Unity3d
https://netpyoung.github.io/unity.webp/
MIT License
237 stars 28 forks source link

The name 'Unsafe' does not exist in the current context #51

Closed strangeways-dev closed 1 year ago

strangeways-dev commented 1 year ago

After importing the package I received this error in the console

Assets\unity.webp\Runtime\NativeLibwebpdemux.cs(141,17): error CS0103: The name 'Unsafe' does not exist in the current context

There is no documentation explaining how to fix this, any help would be appreciated, thank you

strangeways-dev commented 1 year ago

I figured it out. I hadn't installed it properly, follow the instructions on the page I have shared if you had the same problem.

https://openupm.com/packages/com.netpyoung.webp/?subPage=meta

Thank you for the awesome package!