Skip to content

[FEATURE] <title>Can't get it to work on Unity WebGL #3396

@elephantpanda

Description

@elephantpanda

Is your feature request related to a problem?

I have been trying for about 5 hours to get this to work for Unity WebGL. 😭
I have downloaded the managed SkiaSharp nuget and the Native.Windows and Native.Android and Native.WebAssemebly nugets.
I have so far got it to run on Windows and Android. 😄
But I haven't been able to get it to run on WebGL. I have tried placing all the different libSkiaSharp.a files in Unity, and tried different versions of Unity 2021.2, 2022.3 etc.

It should work according to the Unity docs.

But it keeps telling me in the Browser console: DLLNotFound libSkiaSharp.

I am not sure if this is because the managed C# dll is expecting a dynamic linked library instead of a static one(???). Is there something to change here?

Has anyone got this working on Unity for WebGL? This would be great because I want to make programs with vector art that will run both on Standalone, Android and Web-browser, so I just need to get this to work and it will be perfect.

If anyone can get this to work on Unity, perhaps they can upload a sample Unity project to github? That would be fantastic.

Describe the solution you would like

a sample unity project working in Unity WebGL.

Describe alternatives you have considered

everything possible.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions