Announcement

Collapse
No announcement yet.

How to save the game with a screenshot?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to save the game with a screenshot?

    Hi everybody.

    I can save the game and load it from the main menu. But I want to save a screenshot from the camera while saving it and show it in the load menu.

    How do I take a screenshot from the camera (realtime and blueprint)?

    Thanks.

    #2
    https://forums.unrealengine.com/show...res+screenshot
    I set this up with a button on screen. Though you can call any event to do it.

    Comment


      #3
      Originally posted by thadkinsjr View Post
      https://forums.unrealengine.com/show...res+screenshot
      I set this up with a button on screen. Though you can call any event to do it.
      Thanks. But how to return the texture2d after the screenshot? Do not you control the path to the file?

      Comment


        #4
        I'm not sure what your trying to do. It saves the file in your UE4 project folder as a screenshot. If you build it to mobile it would save it to your photos, and require access to camera. If you write some code for it to save it into the game package then the garbage collector wont come around to delete it. So you would have to figure out a replace function, and delete function, or your players would have increasing file size compounding all the time.

        Comment

        Working...
        X