Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/litefeel/Unity-CrossPlatformAPI

A unity plugin that provides a unified cross-platform API
https://github.com/litefeel/Unity-CrossPlatformAPI

android ios unity unity3d-plugin

Last synced: 2 months ago
JSON representation

A unity plugin that provides a unified cross-platform API

Awesome Lists containing this project

README

        

# Unity-CrossPlatfromAPI

[![Build Status](https://travis-ci.org/litefeel/Unity-CrossPlatformAPI.svg?branch=master)](https://travis-ci.org/litefeel/Unity-CrossPlatformAPI)

A unity plugin that provides a unified cross-platform API

[Document](https://litefeel.github.io/UnityCrossPlatformApi/Documentation/DoxygenOutput/html/index.html)

Android and IOS API for unity.

|     iOS     | Android |Function|
|:---:|:-------:|:----|
| :o: | :o: | `void SaveToAlbum(string filename)` |
| :o: | :o: | `void PasteToClipboard(string text)` |
| :o: | :o: | `string CopyFromClipboard()` |
| :o: | :o: | `void NativeShareText(string text)` |
| :o: | :o: | `void NativeShareImage(string image, string text = null)` |

## Frequently Asked Questions

#### Crashed when calling the SaveToAlbum () method on iOS 10

> This app has crashed because it attempted to access privacy-sensitive data without a usage description.The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.

Add `NSPhotoLibraryUsageDescription` to `Info.plist` file to fix it.
like following code:

~~~ xml
NSPhotoLibraryUsageDescription
Photo Library Access Warning
~~~

[stackoverflow](https://stackoverflow.com/questions/39519773/nsphotolibraryusagedescription-key-must-be-present-in-info-plist-to-use-camera-r)