Skip to content

codotronix/unity-react-1

Repository files navigation

React App with Unity WebGL Build

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.

How to run the project

  • 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

See it in action

barick-unity-react-1.netlify.app

About

Trying out unity webgl build with react

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published