React Unity is a way to build interactive UI in Unity3D using React. It can be used together with packages like Typescript, redux, i18next, react-router and more. It also supports a subset of CSS features and Flex layout system.
Node is only used while developing and not required in runtime or after the project is built. Following are the minimum recommended versions.
- Node 12
- Unity 2020.3
Install via OpenUPM (recommended)
npx openupm-cli add com.reactunity.core
Or add using the package manager with the git URL
https://github.com/ReactUnity/core.git#stable
- Create a canvas and add
ReactUnity
component to it - Run
npm init @reactunity
in your Unity project root to create a React project - Run
npm start
from React project - Click play in Unity
Read the detailed instructions in wiki. Also check the sample project.
- Not well tested yet
Feel free to share all your questions, proposals and feedbacks by opening issues. This package is in its early stages and looking for constructive feedback.
- Sample Project and Demo
- React Unity Renderer (npm package)
npm init @reactunity
- 3rd party dependencies