Skip to content

Installation

Gökhan Kurt edited this page Sep 8, 2021 · 4 revisions

You can use quick start wizard by selecting React > Quick Start from Unity menu. After that, you can open [Unity_Project_Root]/react in Visual Studio Code or any other Typescript IDE to start editing your UI.

You can run npm run watch from this folder to automatically update the output whenever a file changes. By default this will create a file in [Unity_Project_Root]/Assets/Resources/react/index.js, which will be used by ReactUnity component to render the UI. ReactUnity component must be set-up with a Canvas to take effect.

Inspector setup