Add iOS native feature to game

Hello,

I’m developing a game for iOS platform in which user can take screenshot. I could not find any plugin provided by Epic games for screenshot. So I want to add native iOS code to my project and use that functions in blueprint.

Anyone please suggest how to add native feature to unreal engine.

Thanks

Can I ask what the reason for wanting to take a screenshot is? And why it would need to be done through the app itself rather than just taking a screenshot normally?

You can take screenshots directly in UE even through blueprint if you want

@Thnift In my game I have feature that user can take screenshot and record in game. Recording feature is done using RealityKit plugin.

Can I take screenshot using highresolution screenshot and store in iPhone photos?

不不不,实际上并没有那么复杂
有一个蓝图是"Execute Console Command"
你在Command中输入"HighResShot 1"什么的内容就可以做到截图了,
并没有你想的那么复杂,实际上是有这样的功能的

我知道我们可以使用 HighResShot 截取屏幕截图。 但我需要将该屏幕截图存储在 iPhone 上的“照片”应用程序中。 知道我们该怎么做吗?

我能搜到的相关资料并不多,这是我的盲区,很抱歉无法回答你

没问题,感谢您的努力帮助。

I’m no expert on this myself, but from what I’ve been reading you are likely looking at modifying the engine side of unreal to achieve what you’re looking for.

Doing a quick search in the UE5 source (my local build, so may not be 100% up to date, you may want to do the search yourself just to be sure) came up with nothing for UIImageWriteToSavedPhotosAlbum. Which is what I could find in the iOS API for saving an image to the device’s photo album.

Again I’m no expert here, but this seems like something you’d need to add manually yourself.

You may also be able to look at Building UE As A Library and writing a lightweight Swift app to wrap your game - where you would have more access to the iOS API.

Finally I found this thread which didn’t seem to come to a solution, but might have some good jumping off points if you’re ready to delve deeper into the engine