This project demonstrates how to integrate a Unity WebGL build into a React application. The Unity build is served as a static asset and can be interacted with within the React app.
- Build the Docker Image
docker build -t unity-react-1 .
- Run the Docker Container
docker run -p 9090:9090 unity-react-1
-
Open your browser and navigate to
http://localhost:9090
to see the React app with the Unity WebGL build integrated. -
Or you can run the project without Docker:
npm i
npm run dev