Coder Social home page Coder Social logo

chrismeteu / unity-native-toolkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryanw3bb/unity-native-toolkit

0.0 0.0 0.0 1.63 MB

Native iOS & Android functionality in Unity

License: MIT License

Objective-C 10.68% Java 41.61% C# 36.04% Objective-C++ 11.68%

unity-native-toolkit's Introduction

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:

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 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/

unity-native-toolkit's People

Contributors

ryanw3bb avatar ericksimoes avatar xavis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.