Monday, December 5, 2022
HomeGame DevelopmentUtilizing SkiaSharp (Google Graphics/Drawing Library) in Unity Android builds?

Utilizing SkiaSharp (Google Graphics/Drawing Library) in Unity Android builds?


I’ve put in SkiaSharp by including SkiaSharp.dll and libSkiaSharp.dll in Unity from this web page’s prepackaged zip to my Belongings/Plugin folder and the next line to csc.rsp:

-r:AssetsPluginsSkiaSharp.dll

This works in Unity Editor on Home windows. I can entry the SkiaSharp capabilities/courses. Nonetheless, once I construct to Android and attempt to run the identical capabilities I get:

    2022/12/04 21:01:00.790 19171 19202 Debug Unity Did not load native plugin: Unable to lookup library path for 'SkiaSharp'.
    2022/12/04 21:01:00.798 19171 19202 Error Unity DllNotFoundException: libSkiaSharp meeting:<unknown meeting> sort:<unknown sort> member:(null)
    2022/12/04 21:01:00.798 19171 19202 Error Unity   at (wrapper managed-to-native) SkiaSharp.SkiaApi.sk_memorystream_new()
    2022/12/04 21:01:00.798 19171 19202 Error Unity   at SkiaSharp.SKMemoryStream..ctor () [0x00000] in <d8a986c3a3a54171980f8dabea28fb18>:0
    2022/12/04 21:01:00.798 19171 19202 Error Unity   at SkiaSharp.SKMemoryStream..ctor (System.Byte[] information) [0x00000] in <d8a986c3a3a54171980f8dabea28fb18>:0
    2022/12/04 21:01:00.798 19171 19202 Error Unity   at SkiaSharp.SKBitmap.Decode (System.Byte[] buffer) [0x00011] in <d8a986c3a3a54171980f8dabea28fb18>:0

I’m not acquainted with including third get together plugins like this. Is there any trick to creating this work or is SkiaSharp seemingly incompatible with Android? I would want it working for iOS too when it comes time to launch.

Whether it is troublesome prone to make work, are there any simply applied Graphics libraries I might use as an alternative? I discovered a superb record right here however I have not seen any that simply combine.

Thanks.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments