Example Scenes
Wasmbox example scenes are located in Assets/Plugins/PlaceholderSoftware/Wasmbox/Demos
.
Some example scenes are for advanced use cases. You do not need to understand all of them to get started using Wasmbox!
📄️ Basic MonoBehaviour
This scene demonstrates the most basic usage of Wasmbox. It is located in Assets\Plugins\PlaceholderSoftware\Wasmbox\Demos.
📄️ WASI Demo
This scene demonstrates the most usage of WASI (WebAssembly System Interface) with Wasmbox. It is located in Assets\Plugins\PlaceholderSoftware\Wasmbox\Demos.
📄️ Fuel Usage Demo
This scene demonstrates the use of Fuel with Wasmbox to limit execution time.
📄️ Callback Demo
This scene demonstrates how to register a callback - C# code which can be called by WASM code.
📄️ Parallel Jobs
This scene demonstrates using WASM in a Unity Job. For more information about using Wasmbox with Unity Jobs, see this tutorial.
📄️ Async Execution
This scene demonstrates how to use async execution. Async execution allows a some running code to be paused and then resumed later. This is similar to a Unity coroutine but it can work with any program, even ones which were not designed for async execution! For more information about using async execution, see this tutorial.
📄️ Async Execution With Jobs
This scene is very similar to the basic async demo scene. In this example the AsyncJobDemoScript begins running the async WASM on the main thread and then finishes running the rest of it using the Unity Job System.