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"

UpdateTextureRegions - Editor Only?


Curious why UpdateTextureRegions is marked with ENGINE_API but wrapped in a WITH_EDITOR ifdef? I'd prefer not to marshall around it and understand the reasoning behind hiding it.


      *    Asynchronously update a set of regions of a texture with new data.
      *    @param MipIndex - the mip number to update
      *    @param NumRegions - number of regions to update
      *    @param Regions - regions to update
      *    @param SrcPitch - the pitch of the source data in bytes
      *    @param SrcBpp - the size one pixel data in bytes
      *    @param SrcData - the source data
      *  @param bFreeData - if true, the SrcData and Regions pointers will be freed after the update.
     ENGINE_API void UpdateTextureRegions(int32 MipIndex, uint32 NumRegions, FUpdateTextureRegion2D* Regions, uint32 SrcPitch, uint32 SrcBpp, uint8* SrcData, bool bFreeData);
      * Temporarily disable streaming so we update subregions of this texture without streaming clobbering it. 
     ENGINE_API void TemporarilyDisableStreaming();
     /** Called after an editor or undo operation is formed on texture
     virtual void PostEditUndo() override;
 #endif // WITH_EDITOR

Product Version: UE 4.9
more ▼

asked Oct 12 '15 at 03:18 PM in C++ Programming

avatar image

6 1 4 6

avatar image Xinli Zou Feb 03 '16 at 06:46 PM

I got the same question. It is strange why these functions are editor related. Anyone?

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

1 answer: sort voted first

To update others that see this report and since it was left to rot:

4.13 moved this function to ENGINE_API without IF_EDITOR so now works correctly.


more ▼

answered Dec 23 '16 at 04:48 PM

avatar image

6 1 4 6

(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