How to Save from Unity to iOS Camera Roll with Screen Capture

Asked 2 years ago, Updated 2 years ago, 55 views

Take a screen capture of the screen with Unity(C#) and
I'd like to save it to the iOS camera roll (where the photos are stored).
I don't know how.

For more information on how to capture screenshots, see
Application.CaptureScreenshot
I think you can do it with
Simply store the image in the application's data area
It seems that users will not be able to view the image.

I referred to the following sites, but it was difficult to understand because I did not know Xcode.
How do I take a screenshot with Unity and save it to my iPhone camera roll?

Could someone please tell me how to do it or just explain it?

ios c# unity3d

2022-09-29 21:53

1 Answers

iOS+Xcode knowledge is absolutely necessary to use iOS features.

"Unity can also buy ""features"" in the AssetStore, so it's a bit of an advertisement, but I'll introduce you to the plug-in (=assets) I made."

iOS Load Texture From PhotoLibrary/Camera ($10)
https://www.assetstore.unity3d.com/en/#!/content/9083

Originally, it was a plug-in that allowed images on camera rolls and photos taken with cameras to be used as Unity textures, but there were many requests, so I added a function to save them.This makes it easy to save any image or screenshot from a script, so please consider it.


2022-09-29 21:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.