1.7 KiB
How to build Raindrop Viewer
Dependencies
- Unity LTS 2020.3.29f1
- Windows 10
1. Setup developer environment
This assumes you are using windows 10.
-
install LTS Unity and your favourite C# IDE (VS 2019 or rider are known to work).
-
open command prompt, input this:
git clone https://github.com/RaindropViewer/RaindropViewer -
Now you should have a folder called
RaindropViewer. -
open Unity Hub, and click the
ADDbutton. -
navigate to the folder
RaindropViewerand clickSelect Folder. -
Now, you can click the project and open it with Unity.
-
The project should load with no errors.
2. Run the Viewer in unity editor
- In Unity, open up
BootstrapScene - press the
Play buttonat the top of unity editor. - The viewer should start and you can try out the app.
2b. (optional; sanity check) Try running some tests in Unity Test Runner.
Please ensure you download the unity test runner plugin first. (not documented here)
- Open the test runner window: Window > General > Test Runner
- Click
PlayModetab - You can run tests in the RaindropViewer>Tests.dll>OpenMetaverse folder. These are stable. It might take 5 minutes as a certain test takes strangely long.
- Do note that network tests will fail unless you set an actual password in
secrets.cs
3. Build for Android Device
In unity,
-
File > Build Setting
-
ensure
Androidis selected on left. -
ensure
Raindrop/Bootstrap/Bootstrapis the first scene at the top. (this is the entry point of the app) -
(optional) you can now select your android device from the list
(make sure you turn on ADB on your phone first!) -
Click
Build and RunorBuild. -
if
Build and Runsucceeds, your viewer will start running on the phone! congrats :)