NOTICE!!!
Now it has only been confirmed to work in the Unity Editor.
When I build by IL2CPP for Apple Silicon macOS、this error has occured then does not work:
NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code.
.
Provides the Wasmtime(wasmtime-dotnet) for Unity via Unity Package Manager(UPM).
These packages enable you to run WebAssembly(Wasm, WASI) code on Unity with the Wasmtime/Cranelift backend.
Add these dependencies:
{
"dependencies": {
"com.bytecodealliance.wasmtime": "https://github.com/mochi-neko/wasmtime-dotnet-unity.git?path=/Assets/BytecodeAlliance/Wasmtime",
"com.bytecodealliance.wasmtime-dotnet": "https://github.com/mochi-neko/wasmtime-dotnet-unity.git?path=/Assets/BytecodeAlliance/WasmtimeDotNet",
}
}
to your manifest.json
.
- Windows (
x86_64
) - macOS
- Intel (
x86_64
) - Apple Silicon (
ARM64
)
- Intel (
- Linux (
x86_64
)
Planned
- Android
ARM64
ARMv7
- iOS (
ARM64
)