Playmaker Forum
PlayMaker Feedback => Action Requests => Topic started by: A3DStudio on July 12, 2012, 06:37:28 PM
-
Hello, it is possible to modify the "Take Screenshot" action, to working on a android device and with JPG encode?
-
After a long night i found a solution.
You can use this script on all Devices to take JPG screenshots. (Windows, IOS, Android, ...)
1. Download and place this two scripts to you game directory in the Inspector view.
2. Place the "TakeScreenshot" script on a game object and create a FSM on the same game object.
3. Now use the "Set Property" action in the FSM to define the "File Name" and "File Path". (like on the picture)
4. With a Boolean (enableBool) value you can take screenshots.
(http://a3ds.files.wordpress.com/2012/07/take_screenshot_2.jpg)
Greetings
(Sorry my english)
-
This stuff is pretty old.
Is anybody using this?
Does it work with current Unity and Playmaker versions?
Yes, i'll try it myself and post the results, but please share any insights you might have, using these.
Br,
szomaza
-
I tried this, it works nicely, saving screenshots under the project, into the specified folder structure when testing with Unity Remote with an Android device connected and on PC.
Could not get it to work when built to device. I changed the path to the sdcard and also to phone, tried using / and \ between the folder names, but could not get it to save any images onto device.
The app did pause for a moment when it should have taken the shots, so I guess it did, just could not write/save them for some reason.
Does the app have to have some rights set, so it can write to those image folders?
Well, anyway I don't think I'll be using this, just tested.
Br,
szomaza
-
Hi,
there is a new action TakeCameraScreenShot now available on the Ecosystem.
Bye,
Jean
-
Aucun article correspondant n'a été trouvé.
-
Aucun article correspondant n'a été trouvé.
Hi.
Please write in English on the forums :)