Greetings! We encountered an error loading default values for blueprint structure variables and, fortunately, we managed to assemble a minimal repro case.
Here’s the layout that leads to error(tested on both 5.6 and 5.7):
1) Blueprint class that inherits PrimaryAsset (DA_AssetClass in repro project)
2) Blueprint struct with a variable of type DA_AssetClass (S_UserDefinedStructure)
3) An asset of DA_AssetClass (DA_Asset)
4) Blueprint class of BTT_BlueprintBase with an exposed variable of type S_UserDefinedStructure (BTT_BTTask)
5) BehaviourTree asset with the above task(BT_BehaviourTree)
After loading the project if we first open S_UserDefinedStructure and then open BehaviourTree then everything is ok. But if we first open BT_BehaviourTree we can see that the inner variable of S_UserDefinedStructure that held DA_Asset is now null and you get the followig error in output log.
LogProperty: Error: FStructProperty::Serialize Loading: Property ‘StructProperty /Game/BTT_BTTask.BTT_BTTask_C:AbilityData’. Unknown structure.
LogClass: Warning: Struct Property AbilityData has a struct type mismatch (tag STRUCT_REINST_S_UserDefinedStructure_4(/Engine/Transient) != prop FallbackStruct(/Script/CoreUObject)) in package: /Game/BTT_BTTask. If that struct got renamed, add an entry to ActiveStructRedirects.
LogProperty: Warning: Serialized BlueprintGeneratedClass /Game/DA_AssetClass.DA_AssetClass_C for a property of LinkerPlaceholderClass /Game/S_UserDefinedStructure.PLACEHOLDER-CLASS__DA_AssetClass_C_0. Reference will be nulled.
ReferencingObject \= UserDefinedStruct /Game/S\_UserDefinedStructure.S\_UserDefinedStructure
Property \= ObjectProperty /Game/S\_UserDefinedStructure.S\_UserDefinedStructure:PrimaryAsset\_10\_620218C04F61459D99F1D0A6AB388374
Item \= DA\_AssetClass\_C /Game/DA\_Asset.DA\_Asset
LogClass: Warning: Struct Property AbilityData has a struct type mismatch (tag FallbackStruct(/Script/CoreUObject) != prop S_UserDefinedStructure(/Game/S_UserDefinedStructure)) in package: FObjectReader. If that struct got renamed, add an entry to ActiveStructRedirects.
Please, suggest a way to fix the issue or maybe a temporary workaround while we’re waiting for a fix.
Thanks in advance!
[Attachment Removed]