Hello all. I have been trying to utilize the wiki tutorial on Dynamic Textures. For some reason the following code only works in the editor. When I package for Android and test the texture never gets updated. I’m using UE4 Version 4.16.1.
TArray<FColor> data;
data.Init(FColor(255, 0, 0, 255), 512*512*4);
void* TextureData = LoadedT2D->PlatformData->Mips[0].BulkData.Lock(LOCK_READ_WRITE);
FMemory::Memcpy(TextureData, data.GetData(), data.Num());
LoadedT2D->PlatformData->Mips[0].BulkData.Unlock();
LoadedT2D->UpdateResource();
Any assistance with this would be greatly appreciated.