The UPaperSprite::BakedSourceTexture will be nullptr in a packaged game if the sprite is not referenced by the UGameInstance. The attached sample project demonstrates this scenario.
Expected
The log contains "SecondTextureReferenceSprite Success!"
Actual
The log contains "SecondTextureReferenceSprite Fail!" because the BakedSourceTexture member of the 2nd test sprite is nullptr when running the packaged game, but is not in PIE.
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
How do I set a material as a post-processing material?
What is the difference between Camera and CineCamera?
How to delete some elements correctly when deleting an array loop?
What controls of umg have mouse wheel events in UE4.27?
How to implement springarm components to scale according to mouse position in spawn?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-230649 in the post.
0 |
Component | UE - Gameplay - Paper2D |
---|---|
Affects Versions | 5.4, 5.5 |
Target Fix | 5.6 |
Created | Nov 15, 2024 |
---|---|
Updated | Nov 19, 2024 |