1. Adding the following code in UShooterEngine::Init() with ShooterGame.
const int32 PixelMapWidth = 256; const int32 PixelMapHeight = 256; UTexture2D* pCreateTex2D = UTexture2D::CreateTransient(PixelMapWidth, PixelMapHeight); FTexture2DMipMap& mip = pCreateTex2D->PlatformData->Mips[0]; void* data = mip.BulkData.Lock(LOCK_READ_WRITE); check(data != nullptr); mip.BulkData.Unlock(); pCreateTex2D->UpdateResource(); data = mip.BulkData.Lock(LOCK_READ_WRITE); check(data != nullptr); mip.BulkData.Unlock(); pCreateTex2D->UpdateResource();
2. Enable iostore at ProjectSettings.
3. Make package and run package application.
Then, crash on the second "check(data ! = nullptr);".
How does TextureRenderTarget2D get TArray<uint8> type data?
How to delete some elements correctly when deleting an array loop?
Why does the REMOVE method of map container remove elements have memory leaks?
How do I set a material as a post-processing material?
How would I go about lerping the rotation instead of it snapping when turning (pls dont sue me epic)
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
UMG RichText not appear image when packaged
Why does UV setting float2(1,1) display incorrectly in the material's custom node?
How to convert the datasmith scene file to BluePrint. Create animations in BluePrint.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-94440 in the post.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.25plus |
Target Fix | 4.25plus |
Fix Commit | 13756878 |
---|
Created | Jun 17, 2020 |
---|---|
Resolved | Jun 24, 2020 |
Updated | Jul 22, 2020 |