This is perhaps a misuse of Instanced properties but the repro info is good so I thought I'd better add it to Jira. See Additional Info URL for details.
Checked and happening on:
//UE4/Main CL-2884111
//UE4/Release-4.11 CL-2885916
UCLASS(editinlinenew, DefaultToInstanced) class UInstancedBase : public UObject { GENERATED_BODY() public: UPROPERTY(EditAnywhere) int32 Foo; }; UCLASS() class QAGAME_API UCreatedWidget : public UWidget { GENERATED_BODY() public: UPROPERTY(Category = UI, EditAnywhere) USlateWidgetStyleAsset* Style; UPROPERTY(Category = UI, EditAnywhere, Instanced) TArray<UInstancedBase*> BaseInstances; UPROPERTY(Category = UI, EditAnywhere, Instanced) UInstancedBase* SingleInstance; };
Result: On compile set values are lost.
(Can also check UDN link for further info on repro.)
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-26310 in the post.
3 |
Component | UE - Editor - UI Systems |
---|---|
Affects Versions | 4.10, 4.11, 4.12 |
Target Fix | 4.19 |
Fix Commit | 2897335 |
---|---|
Main Commit | 2910931 |
Created | Feb 2, 2016 |
---|---|
Resolved | Dec 15, 2017 |
Updated | May 4, 2023 |