question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Official Unity Support on Native Platforms

See original GitHub issue

Unity as a Library

Unity 2019.3 will add support for using Unity as a library controlled by native Android/Java and iOS/Objective C apps so you can easily insert AR and other Unity features.

https://blogs.unity3d.com/2019/06/17/add-features-powered-by-unity-to-native-mobile-apps/

Android Integration

https://forum.unity.com/threads/integration-unity-as-a-library-in-native-android-app.685240/

iOS Integration

https://forum.unity.com/threads/integration-unity-as-a-library-in-native-ios-app.685219/

Thoughts

Depending on the new official Unity as a Library feature could result in a more stable react-native-unity-view library and should be considered for version 2.x.x

Related Flutter Issue

https://github.com/snowballdigital/flutter-unity-view-widget/issues/10

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:21
  • Comments:20

github_iconTop GitHub Comments

7reactions
zbagleycommented, Aug 29, 2019

@alisherakb @ambewas I have minimal viable up and running for iOS. Minimal viable for Android is definitely on the plate for the near future as well, but iOS has temporary priority. Hoping to continue to expand on the base form, lifecycle management, subclassing, and general project structure down the line. Will likely also make branches to show examples for common packages. Feel free to watch/star/contribute https://github.com/CGS-Canada/react-native-unity

7reactions
zbagleycommented, Aug 13, 2019

@alisherakb @ambewas Currently I’m using Native to load in, and working directly with the RCBridge and Unity’s Native Calls protocol. I have it set up to communicate only between button clicks (click to load RN as well), and plan on auto-loading RN as the primary view on both platforms for initialization. General idea is that the native code is acting as the RN/Unity bridge. Once I get a better foundation implemented, I will gladly share a GitHub repo template both here and on the Unity forum links above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add features powered by Unity to native mobile apps
Unity 2019.3 will add support for using Unity as a library controlled by native Android/Java and iOS/Objective C apps so you can easily ......
Read more >
Adding features to native apps with Unity as a Library - YouTube
With Unity 2019 LTS, we officially give creators the ability to insert features powered by Unity, including augmented reality (AR), ...
Read more >
Android environment setup - Unity - Manual
The Native Development Kit (NDK). ... Warning: Unity only officially supports versions of the OpenJDK, SDK, or NDK that it supplies through the...
Read more >
Developers can now incorporate Unity features into native iOS ...
“We know there are times when developers using native platform technologies (like ... Unity Editor will now officially support Linux.
Read more >
Unity Support for Stadia: Here's what you need to know
Today, we are excited to announce Unity will make Stadia an officially supported platform. One of our core missions has always been democratizing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found