Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/litefeel/Unity-CrossPlatformAPI
- Owner: litefeel
- License: apache-2.0
- Created: 2018-03-07T03:45:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-16T01:44:10.000Z (almost 7 years ago)
- Last Synced: 2024-07-14T13:36:43.468Z (7 months ago)
- Topics: android, ios, unity, unity3d-plugin
- Language: C#
- Homepage: https://www.assetstore.unity3d.com/#!/content/94877
- Size: 393 KB
- Stars: 17
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - Unity-CrossPlatfromAPI - Provides a unified cross-platform API (iOS / Android)
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)