Gallery Screenshot
iOS / Android / Windows Phone 8 Plugin
This Plugin will take a screenshot, and register the image file so that it appears in your media library
(camera roll) on iOS, Android & Windows Phone 8.
In addition to saving screenshots into the media library, this Plugin can also save an existing image,
e.g. a jpeg loaded as a Texture2D. Please read this guide and take a look at the included Demo Scene
to see how to do this (Demo scene should be ran at portrait res, e.g. 720x1280).
There is a full C# scripting reference here: http://secondfury.com/galleryscreenshot/
Android Setup
The asset package should import to Assets/Plugins/ - please ensure this is the location of the files
otherwise you will run into errors.
If you are using Android, you will need to go into Build Settings and access the Player Settings panel.
Change Write Access to External (SDCard) to allow the screenshots to save.
Windows Phone 8 Setup
Please first make sure your Platform is set to Windows Phone 8 in Build Settings. You must also
ensure the capability ID_CAP_MEDIALIB_PHOTO is specified in the app manifest. When you build
your app this will be <BUILDPATH>/Properties/WMAppManifest.xml.
<Capability Name="ID_CAP_MEDIALIB_PHOTO"/>
An extra step for Unity 5 users is the .dll files must have their import settings set in the Inspector.
Assets/Plugins/WP8Screenshot.dll
Platforms: All platforms checked except WP8Player
Assets/Plugins/WP8/WP8Screenshot.dll
Platforms: Check WP8Player only
Placeholder: Assets/Plugins/WP8Screenshot.dll
1 / 3