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
Wasmbox
in the list of assets. - Click
Download
orUpdate
. - 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
Wasmbox
in the list of assets. - Click
Download
orUpdate
. - 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
.asmdef
file - Add a new item to the
Assembly Definition References
list - Place
Wasmbox
into 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
Addressables
1.19 or greater. - Tick
Addressable Loading
when 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.