kandi background

react-native-unity | React Native package to use Unity as library with RN app | Frontend Framework library

 by   wowmaking C# Version: Current License: No License

 by   wowmaking C# Version: Current License: No License

Download this library from

kandi X-RAY | react-native-unity Summary

react-native-unity is a C# library typically used in User Interface, Frontend Framework, React Native, React, Unity applications. react-native-unity has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.
React Native package to use Unity as library with RN app
Support
Support
Quality
Quality
Security
Security
License
License
Reuse
Reuse

kandi-support Support

  • react-native-unity has a low active ecosystem.
  • It has 50 star(s) with 13 fork(s). There are 10 watchers for this library.
  • It had no major release in the last 12 months.
  • There are 9 open issues and 1 have been closed. There are 2 open pull requests and 0 closed requests.
  • It has a neutral sentiment in the developer community.
  • The latest version of react-native-unity is current.
react-native-unity Support
Best in #Frontend Framework
Average in #Frontend Framework
react-native-unity Support
Best in #Frontend Framework
Average in #Frontend Framework

quality kandi Quality

  • react-native-unity has 0 bugs and 10 code smells.
react-native-unity Quality
Best in #Frontend Framework
Average in #Frontend Framework
react-native-unity Quality
Best in #Frontend Framework
Average in #Frontend Framework

securitySecurity

  • react-native-unity has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
  • react-native-unity code analysis shows 0 unresolved vulnerabilities.
  • There are 0 security hotspots that need review.
react-native-unity Security
Best in #Frontend Framework
Average in #Frontend Framework
react-native-unity Security
Best in #Frontend Framework
Average in #Frontend Framework

license License

  • react-native-unity does not have a standard license declared.
  • Check the repository for any license declaration and review the terms closely.
  • Without a license, all rights are reserved, and you cannot use the library in your applications.
react-native-unity License
Best in #Frontend Framework
Average in #Frontend Framework
react-native-unity License
Best in #Frontend Framework
Average in #Frontend Framework

buildReuse

  • react-native-unity releases are not available. You will need to build from source code and install.
  • Installation instructions, examples and code snippets are available.
  • It has 236 lines of code, 40 functions and 10 files.
  • It has medium code complexity. Code complexity directly impacts maintainability of the code.
react-native-unity Reuse
Best in #Frontend Framework
Average in #Frontend Framework
react-native-unity Reuse
Best in #Frontend Framework
Average in #Frontend Framework
Top functions reviewed by kandi - BETA

Coming Soon for all Libraries!

Currently covering the most popular Java, JavaScript and Python libraries. See a SAMPLE HERE.
kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.

react-native-unity Key Features

React Native package to use Unity as library with RN app

react-native-unity Examples and Code Snippets

Community Discussions

Vulnerabilities

No vulnerabilities reported

Install react-native-unity

IMPORTANT! Call Resolve or Reject method of received RNCommand instance to remove it from JavaScript thread.
Install package via npm
Move your Unity project to unity folder at project root
Add following line at your unity/Packages/manifest.json { ... "com.wowmaking.react-native-unity": "file:../../node_modules/@wowmaking/react-native-unity/unity" }
To receive commands from JavaScript, you must create another game object, or use existing. Commands receiver object must implements IRNCommandsReceiver interface using Wowmaking.RNU; public class NewGameObject : MonoBehaviour, IRNCommandsReceiver { ... }
Set your object as commands receiver to RNBridge on Awake using Wowmaking.RNU; public class NewGameObject : MonoBehaviour, IRNCommandsReceiver { private void Awake() { RNBridge.RegisterCommandsReceiver(this); } }
Implement IRNCommandsReceiver interface by adding HandleCommand method using Wowmaking.RNU; public class NewGameObject : MonoBehaviour, IRNCommandsReceiver { private void Awake() { RNBridge.RegisterCommandsReceiver(this); } public void HandleCommand(RNCommand command) { switch (command.name) { // command.Resolve(new {}) || command.Reject(new {}) } } } IMPORTANT! Call Resolve or Reject method of received RNCommand instance to remove it from JavaScript thread
Go to Menu -> Edit -> Project setings... -> Player -> iOS -> Other Settings
Find Target SDK setting and select Simulator SDK
Run pod install
Build Unity app to [project_root]/unity/builds/ios
Add Unity-iPhone.xcodeproj to your workspace: Menu -> File -> Add Files to [workspace_name]... -> [project_root]/unity/builds/ios/Unity-iPhone.xcodeproj
Add UnityFramework.framework to Embedded Binaries: select your_app target in workspace in General / Embedded Binaries press + select Unity-iPhone/Products/UnityFramework.framework remove UnityFramework.framework from Linked Frameworks and Libraries ( select it and press - ) in Build Phases move Embedded Binaries before Compile Sources ( drag and drop )
In AppDelegate.m file make background color of React root view transparent
Add ndk support into android/app/build.gradle defaultConfig { ... ndk { abiFilters "armeabi-v7a", "arm64-v8a" } }
Append the following lines to android/settings.gradle: include ':unityLibrary' project(':unityLibrary').projectDir=new File('..\\unity\\builds\\android\\unityLibrary')
Insert the following lines inside the dependencies block in android/app/build.gradle: implementation project(':unityLibrary') implementation files("${project(':unityLibrary').projectDir}/libs/unity-classes.jar")
Change parent activity in MainActivity.java from ReactActivity to UnityReactActivity import com.wowmaking.rnunity.UnityReactActivity; public class MainActivity extends UnityReactActivity { ... }
Add strings to res/values/strings.xml <string name="game_view_content_description">Game view</string> <string name="unity_root">unity_root</string>
Update .MainActivity into AndroidManifest.xml <activity android:name=".MainActivity" ... android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection|density" android:hardwareAccelerated="true" android:launchMode="singleTask" >
Setup minSdkVersion greater than or equal to 19
Remove <intent-filter>...</intent-filter> from AndroidManifest.xml at unityLibrary to leave only integrated version.

Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .

DOWNLOAD this Library from

Build your Application

Share this kandi XRay Report

Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit