-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Load unity application on demand #26
Comments
Me too, starting Unity at the same time with React Native doesn't make any sense. Once I embed Unity into something, I want it to control when Unity will appear, not let Unity start automatically. |
@ssshake @hanthuyen8 did you guys figure out a solution to this? |
|
Cool thanks for referring me to that fork. @Jonovono the solution I ended up going with was a bit different. Instead of having a unity application inside of a react native application it was starting to make more sense to keep them as two separate apps and allow each app to call each other, and share data. So what I used for ios was two things. 1) Universal links, which allows one app to open another and pass some data via get params. 2) Application groups, so that both applications have shared storage between then and share a common sqlite databse. So my react native app and unity app both have access to the same local database and both application upon a button press can open the other app and pass some data to it so they it knows what the other app was working on . |
Is there a way to suppress the loading of the unity application when the react native application loads?
We want to be able to dynamically start the unity process as for our application 90% of the work is being done in react native and 10% is being done in unity. The purpose of doing a hybrid approach like this is to be considerate to battery life by not always having the unity program running.
The text was updated successfully, but these errors were encountered: