Skip to content

superwaver/unity-native-toolkit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 static function from your code. For instance:

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.

Notes

The example project was built using Unity 2018.2.20f1 and the libraries using Android Studio 3.1.3 and Xcode 10.1.

Android (Java) source located in Android/app/src/main/java/
iOS (Obj-C) source located in Unity/Assets/Plugins/iOS/

About

Native iOS & Android functionality in Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 61.7%
  • Objective-C++ 20.0%
  • Objective-C 18.3%