Hello,
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.
Thanks!
#if WITH_EDITOR
/**
* 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