@reactunity/create

0.18.0 • Public • Published

Create React Unity App

Creates the Typescript project for React Unity. See core library for details.

Usage

If you want to add ReactUnity to an existing Unity project:

npx @reactunity/create@latest

If you want to create full Unity app from scratch:

npx @reactunity/create@latest -u

Create the React project in a custom folder:

npx @reactunity/create@latest custom/folder/path

Options

Options can be used like: npx @reactunity/create@latest <options>

  -u, --unity                Creates Unity project from scratch and adds React project into it
  -i, --install [npm|yarn]   Run 'npm install' or 'yarn install'.
  -h, --help                 Print help

Commands

After a project is created, you can run following commands in the react directory. You can also use other package managers like yarn instead of npm.

  • npm start - Run development server with HMR support
  • npm run build - Build the production ready Javascript file to /Assets/Resources/react/index.js

Readme

Keywords

none

Package Sidebar

Install

npm i @reactunity/create

Weekly Downloads

21

Version

0.18.0

License

MIT

Unpacked Size

3.44 MB

Total Files

112

Last publish

Collaborators

  • kurtgokhan