Since FDeprecateSlateVector2D has been implemented in 5.2, the following function calls will always fail. Therefore, the ImageSize is not updated.
This problem does not occur in 5.1.
void SBrushResourceObjectBox::OnBrushResourceChanged() { ... // Update the image size to match that of the incoming new texture. // TODO: Should we always do this? Or should we avoid doing it if there's already some 'set value' // problem is we don't have a way to track that right now. ImageSizeProperty->SetValue(CachedTextureSize); // This function call fails
The following code works as a work around :
bool FPropertyHandleVector::Supports( TSharedRef<FPropertyNode> PropertyNode ) { .... if( StructProp && StructProp->Struct ) { FName StructName = StructProp->Struct->GetFName(); bSupported = StructName == NAME_Vector || #if 1 // workaround StructName == NAME_Vector2f || StructName == FName("DeprecateSlateVector2D") || #endif
How do I set a material as a post-processing material?
Why does the REMOVE method of map container remove elements have memory leaks?
How does TextureRenderTarget2D get TArray<uint8> type data?
UMG RichText not appear image when packaged
What is the difference between Camera and CineCamera?
What controls of umg have mouse wheel events in UE4.27?
What ConsoleCommand can be executed to improve the quality of pixel stream images?
Why does the volume fog disappear from a distant view?
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-191666 in the post.
6 |
Component | UE - Editor - UI Systems - UMG |
---|---|
Affects Versions | 5.2 |
Target Fix | 5.5 |
Fix Commit | 27308095 |
---|
Created | Aug 1, 2023 |
---|---|
Resolved | Jul 22, 2024 |
Updated | Jul 24, 2024 |