Installation
Requirements
Wasmbox currently requires:
- Unity 2021.3.21 or greater
- Scripting backend: Mono
danger
Wasmbox is not currently compatible with IL2CPP!
Installation Step-By-Step
- Purchase Wasmbox on the Unity Asset Store.
- Open the package manager (Window > Package Manager).
- Switch to
My Assets. - Find
Wasmboxin the list of assets. - Click
DownloadorUpdate. - When the download is complete click
Import.
note
The asset will be installed into Assets/Plugins/PlaceholderSoftware/Wasmbox
Upgrading Step-By-Step
- Close the Unity editor.
- Delete
Assets/Plugins/PlaceholderSoftware/Wasmbox - Re-Open the Unity editor.
- Open the package manager (Window > Package Manager).
- Switch to
My Assets. - Find
Wasmboxin the list of assets. - Click
DownloadorUpdate. - When the download is complete click
Import.
danger
The first two steps are important! Deleting the plugin ensures that Unity can replace the native DLLs.
Optional Extras
Assembly Definitions
If your application is using Assembly definitions to organise scripts you must add a reference to Wasmbox before you can use it.
To reference Wasmbox:
- Select your
.asmdeffile - Add a new item to the
Assembly Definition Referenceslist - Place
Wasmboxinto the new entry
Addressables
Wasmbox can make use of the Unity Addressable Asset System to asynchronously load content and to simplify managing WASM dependencies.
To use addressable loading:
- Install
Addressables1.19 or greater. - Tick
Addressable Loadingwhen importing a WASM Asset.
caution
If asset is inside an assembly definition you must reference Unity.ResourceManager and Unity.Addressables.
tip
Wasmbox addressables loading tutorial.