Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CoryButler/Unity_iOSCameraPermission
Requestes iOS camera permission with a callback method.
https://github.com/CoryButler/Unity_iOSCameraPermission
Last synced: about 2 months ago
JSON representation
Requestes iOS camera permission with a callback method.
- Host: GitHub
- URL: https://github.com/CoryButler/Unity_iOSCameraPermission
- Owner: CoryButler
- License: mit
- Created: 2018-01-18T18:03:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-25T17:45:35.000Z (about 6 years ago)
- Last Synced: 2024-05-13T20:59:06.494Z (8 months ago)
- Language: Objective-C
- Size: 22.5 KB
- Stars: 43
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - Unity_iOSCameraPermission - Requestes iOS camera permission with a callback method (iOS)
README
# Unity_iOSCameraPermission
Requestes iOS camera permission with a callback method in Unity.# USAGE
The iOSCameraPermission static class will only function in iOS.Still the class will NOT crash the app on other platforms. It will just do nothing.
The string callbackName argument must match the name of the callback method you want to use.
The callback method must require a single string argument.
The string received will either be "true" or "false".
NOTE: You must set a Camera Usage Description in the Player Settings.
# Plugin directory structure
All .h and .m files must be in the follow location:[ProjectName] > Assets > Plugins > iOS
# Usage Sample
See Assets > Scenes > SampleScene.unitySampleScene implements the SampleUsage class.
Camera Usage Description is set to "Sample Camera Usage Description"