Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 3.73 KB

README.md

File metadata and controls

50 lines (29 loc) · 3.73 KB

NeurosityWebApp-Unity

GitHub GitHub

Unity example project. Log into your Neurosity account, choose your device, and check device status, calm and focus scores.

Unity-WebApp

What can you do with it?

You can use this example to connect to your Neurosity account and devices. It is up to you to build upon it and make your own apps and games!

The shoulders of giants

This project was built upon the hard work of others. As such, it is also dependent on the scrutiny and update of the tools they so generously provide. Make sure to check their sites and repositories if you want to upgrade your own project or if you want to Build for mobile platforms.

Where is the fun stuff?

If you want to modify how the handlers communicate with Unity, like I did, go to the Assets/Scripts/Notion-Unity/Handlers folder. The Types folder right beside it will help you with what kind of information is received from Firebase.

If you're more into design and less into coding, you can find my contributions in the Assets/Scripts/WebApp folder. It's inundated with comments about how things work. The NotionInterfacer is the prime candidate for a singleton, since you may not want to relog every time you change scenes. Up to you, really.

Dependencies

Nota Bene: When updating to newer versions of Unity, be sure to update the external packages in {Project Name}/Packages/ and in the manifest.json and packages-lock.jason.

Using in Other Projects and Distributing your Game

Other apps will require your own Firebase project, you can follow Firebase Documentation for help on that. There is a stub setup for this repo but any app developed using the Notion Unity SDK will eventually require you to setup your own Firebase account. This is currently a requirement as the Neurosity tech is built on top of Firebase and the Unity Firebase SDKs require google-services.json and GoogleService-Into.plist to be unique for each store app.

To Do

  • Fix Logout() warnings stemming from processes being interrupted mid-thread.

Frequently Asked Questions

Q: Can this be used for mobile?

A: Yes it can. Be ready to open the can of worms that is building for mobile. As an Android user, I can share that you'll be banging your head against the wall to Build your first mobile app from Unity, neurogame or not. Your mileage may vary depending on whether Unity finally decides to properly support Android development. Haven't tried to build for iOS, yet...