React WebGL
Run a Unity WebGL build inside Creator Studio
Before start, make sure you have installed WebGL for Unity. You can find download option in File > Build Settings
Change the Compression format in the Edit > Project Settings > Player > WebGL settings > Publishing settings to the Disabled

(Optional) Switch platform to the WebGL in the File > Build Settings, if another platform is chosen

Form WebGL build: File > Build Settings > Build. The output WebGL build contains 4 files in the
BuildDirectory/Build:- BuildName.data
- BuildName.framework.js
- BuildName.loader.js
- BuildName.wasm

Place these files inside
asylum-ui/packages/connection-library/data/build_nameand add new Space inconst spaces: ISpaceMockData[]array inasylum-ui/packages/connection-library/seed/mocks.ts. Specify the correct paths to your Unity build inspaceClientand list ofsupportedBlueprints(if you run seed script, you will have default NFT blueprints with ids[0, 1, 2, 3]):asylum-ui/packages/connection-library/seed/mocks.tsexport const spaces: ISpaceMockData[] = [
...
{
id: 'space_id',
title: 'Your Space',
img: 'image_url',
genre: '...',
shortDescription: '...',
description: '...',
gallery: [...],
supportedBlueprints: [0, 1, 2, 3],
spaceClient: {
data: 'data/build_name/BuildName.data',
framework: 'data/build_name/BuildName.framework.js',
loader: 'data/build_name/BuildName.loader.js',
wasm: 'data/build_name/BuildName.wasm',
}
}
...

Follow the steps of Docker setup and run the following command in terminal:
docker-compose upcautionIf you had Docker setup before, you have to delete
asylum-uiimage and container and rundocker-compose upagain, otherwise new changes won't be applied.:::caution
To see the proper result you should have items minted on your chain. To do this you can:
mint items manually from Blueprints: Tutorials: Items Minting,
or reseed data with items using script: Docker Setup: Reseed Data
:::
Open a web browser and go to the
http://localhost:3000/Add the wallet and connect to the local node

Choose the space and press the Run button.

The build is running
