Description

Instanced variables were given a fix in response to this issue: [Link Removed]

Once implemented, when the project is compiled the data from the blueprint instanced variable is removed.

A recommended fix is to include the following in KismetCompilerMisc.cpp for default to instanced properties:
NewPropertyObj->SetPropertyFlags(CPF_PersistentInstance);

 

Steps to Reproduce

STEPS TO REPRO:

Add changes from [Link Removed]
Create UClass with DefaultInstanced
Add previous class as variable in any BP (create an empty one if needed)
Modify inline default values
Compile
CURRENT RESULT:

It erases the data of the bp variable

EXPECTED RESULT:

It mantains the data after compiling

Have Comments or More Details?

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

6
Login to Vote

Unresolved
ComponentUE - Gameplay - Blueprint
Affects Versions5.35.4
Target Fix5.5
CreatedJan 17, 2024
UpdatedFeb 27, 2024