Description

Modifying the default value of a UUserWidget parameter declared in a c++ in blueprints appears to have no effect after compiling. The default value will reset back to "none".

Additional info. The property was set to be "EditDefaultsOnly"

UPROPERTY(EditDefaultsOnly)
UUserWidget* TestWidget;

Steps to Reproduce
  1. Download that attached project
  2. Generate Visual studio project files
  3. Open project
  4. Open the "ThirdPersonCharacter" blueprint
  5. Set the "Test Widget" value to anything other than "None" (VREDAnimationSampleUI is available by default)
  6. Compile

Result: The Property will be set back to "None"
Expected: The property value of test widget would be retained after compiling the blueprint

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-76060 in the post.

5
Login to Vote

Won't Fix
ComponentUE - Editor - UI Systems
Affects Versions4.234.22.2
CreatedJun 11, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021