Skip to content

Commit

Permalink
Merge pull request #5 from lorant-csonka-planorama/lorant/readme
Browse files Browse the repository at this point in the history
Add video tutorial, replace `unity-player` with `unity-classes` in RE…
  • Loading branch information
juicycleff committed Apr 14, 2019
2 parents f16bb85 + def784d commit b974138
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import 'package:flutter_unity_widget/flutter_unity_widget.dart';
<br />

## Setup Project
For this, there is also a video tutorial, which you can find a [here](https://www.youtube.com/watch?v=exNPmv_7--Q).

### Add Unity Project

Expand Down Expand Up @@ -95,18 +96,18 @@ IOS will export unity project to `ios/UnityExport`.

**Android Platform Only**

1. After exporting the unity game, open Android Studio and and add the `Unity Player` Java `.jar` file as a module to the unity project. You just need to do this once if you are exporting from the same version of Unity everytime. The `.jar` file is located in the ```<Your Flutter Project>/android/UnityExport/lib``` folder
1. After exporting the unity game, open Android Studio and and add the `Unity Classes` Java `.jar` file as a module to the unity project. You just need to do this once if you are exporting from the same version of Unity everytime. The `.jar` file is located in the ```<Your Flutter Project>/android/UnityExport/lib``` folder
2. Next open `build.gradle` of `flutter_unity_widget` module and replace the dependencies with
```gradle
dependencies {
implementation project(':UnityExport') // The exported unity project
implementation project(':unity-player') // the unity player module you added from step 1
implementation project(':unity-classes') // the unity classes module you added from step 1
}
```
3. Next open `build.gradle` of `UnityExport` module and replace the dependencies with
```gradle
dependencies {
implementation project(':unity-player') // the unity player module you added from step 1
implementation project(':unity-classes') // the unity classes module you added from step 1
}
```
4. Next open `build.gradle` of `UnityExport` module and remove these
Expand Down

0 comments on commit b974138

Please sign in to comment.