x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to Serialize UTextureRenderTarget2D?

I am trying to save Images( UTextureRenderTarget2D ) to hard drive. I am generating them in game and use as pictures of Items in inventory. How me to save/load them. Nothing is helping now. Image.Serialize() and using of FArchive ( from forum suggestions ) allowed to store UTextureRenderTarget2D as binary file and even load it back to binary array ( TArray ), but no options helped me to convert this array back to UTextureRenderTarget2D.At least I would like to know how to save generated images and load them back ( UTexture2D will be fine also).

Product Version: UE 4.11
Tags:
more ▼

asked May 24 '16 at 02:49 PM in C++ Programming

avatar image

Dadlord36
35 4 9 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

https://answers.unrealengine.com/questions/418329/save-rendering-to-file-efficiently.html -- This helps me. But if you will do same, I mast say, that you can get ColorBuffer from UTextureRenderTarget only if it is was created in Content Browser. I wasn't able to read ColorBuffer from constructed from code UTextureRenderTarget properly. Only ClearColor was read;

more ▼

answered May 25 '16 at 05:33 PM

avatar image

Dadlord36
35 4 9 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question