Skip to content

litefeel/Unity-CrossPlatformAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-CrossPlatfromAPI

Build Status

A unity plugin that provides a unified cross-platform API

Document

Android and IOS API for unity.

    iOS     Android Function
void SaveToAlbum(string filename)
void PasteToClipboard(string text)
string CopyFromClipboard()
void NativeShareText(string text)
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:

<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Access Warning</string>

stackoverflow