Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanw3bb/unity-native-toolkit
Native iOS & Android functionality in Unity
https://github.com/ryanw3bb/unity-native-toolkit
Last synced: 1 day ago
JSON representation
Native iOS & Android functionality in Unity
- Host: GitHub
- URL: https://github.com/ryanw3bb/unity-native-toolkit
- Owner: ryanw3bb
- License: mit
- Created: 2018-06-21T20:27:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-08T14:24:27.000Z (over 3 years ago)
- Last Synced: 2024-08-02T05:05:31.925Z (3 months ago)
- Language: Java
- Homepage:
- Size: 1.59 MB
- Stars: 267
- Watchers: 15
- Forks: 44
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity - Native Toolkit - Easily integrate native iOS & Android functionality into Unity projects. (Platforms)
README
# Native Toolkit
Easily integrate native iOS & Android functionality into Unity projects.
* Pick images from camera roll
* Use device camera to take an image
* Save image to gallery
* Save screenshot to gallery
* Send email with attachments
* Retrieve a contact from contacts list
* Alert dialogs
* App rating
* Local notifications
* GPS data (lat/long as double)## Usage
Add the files contained in Unity/Assets/ to your project then call the required method from your code. For instance:
```csharp
public void OnSaveScreenshotPress()
{
NativeToolkit.SaveScreenshot("MyScreenshot", "MyScreenshotFolder", "jpeg");
}
```
For iOS builds make sure you have Scripting Backend set to IL2CPP and Architecture set to Universal in Unity Build Settings.For Android builds Write Access needs to be set to External (SDCard) to allow saving of images, and Build System set to Gradle. A minimum API level of 16 and target API level of 27 was used during testing.
## Documentation
Detailed API documentation can be found [here](https://ryanwebb.com/nativetoolkit/).## Notes
The example project was built using Unity 2019.4.0, Android Studio 3.1.3 and Xcode 11.3.1.Android (Java) source located in Android/app/src/main/java/
iOS (Obj-C) source located in Unity/Assets/Plugins/iOS/