Adding variables to a structure that is an input parameter of an interface function causes a compile error in any blueprint that implements the interface until the interface is recompiled.
Compile errors generated:
Error Event node Event Test Funct is out-of-date. Please refresh it. Error Invalid property 'NewParam' structure 'STRUCT_REINST_TestStruct_20' error: Struct 'UserDefinedStruct /Engine/Transient.STRUCT_REINST_TestStruct_20' is not compiled Error Failed to create property NewParam from New Param due to a bad or unknown type (STRUCT REINST Test Struct 20 Structure) Warning [1984.15] Compile of TestBP failed. 3 Fatal Issue(s) 0 Warning(s) [in 131 ms] (/Game/TestBP.TestBP)
After refreshing the node more errors appear:
Error Invalid property 'K2Node_Event_NewParam' structure 'STRUCT_REINST_TestStruct_20' error: Struct 'UserDefinedStruct /Engine/Transient.STRUCT_REINST_TestStruct_20' is not compiled Error Failed to create property K2Node_Event_NewParam from New Param due to a bad or unknown type (STRUCT REINST Test Struct 20 Structure) Error The property associated with New Param could not be found Error ICE SetVariableOnPersistentFrame - No property found. New Param Error Invalid property 'NewParam' structure 'STRUCT_REINST_TestStruct_20' error: Struct 'UserDefinedStruct /Engine/Transient.STRUCT_REINST_TestStruct_20' is not compiled Error Failed to create property NewParam from New Param due to a bad or unknown type (STRUCT REINST Test Struct 20 Structure) Warning [2120.00] Compile of TestBP failed. 6 Fatal Issue(s) 0 Warning(s) [in 129 ms] (/Game/TestBP.TestBP)
Result: Compile fails.
Even after you right-click the node and "refresh the node" the errors persist
Workaround: Reopen TestInterface and recompile the interface, then the blueprint actor will compile successfully
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-31622 in the post.
19 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.13 |
Target Fix | 4.19 |
Fix Commit | 3784604 |
---|---|
Main Commit | 3804136 |
Created | Jun 3, 2016 |
---|---|
Resolved | Dec 1, 2017 |
Updated | May 4, 2023 |