After creating a custom struct in C++ and adding a variable of that struct type to a Blueprint, hot reloading a code change that involves altering a function that takes the struct as a parameter results in the variable disappearing from the Blueprint, and a new variable of the same name cannot be created (an error message stating that the variable already exists is displayed).
RESULT:
When the compile completes, the Blueprint will no longer show the variable created in step 12, and trying to create a new variable with the same name will show a message saying the name "is in use by another variable or function!"
EXPECTED:
The compile completes, and the variable is still visible and usable in the Blueprint.
WORKAROUND:
Don't perform a Hot Reload whenever altering a function that takes a custom struct as a parameter when that struct is also used as a variable in a Blueprint.
How does TextureRenderTarget2D get TArray<uint8> type data?
UMG RichText not appear image when packaged
How do I set a material as a post-processing material?
Why does the REMOVE method of map container remove elements have memory leaks?
Why RevisionControl connect failed in Unreal5.4 but Unreal5.3 success
Head over to the existing Questions & Answers thread and let us know what's up.
4 |
Component | UE - Gameplay - Blueprint |
---|---|
Target Fix | 4.26 |
Fix Commit | 14261971 |
---|---|
Main Commit | 14261971 |
Created | Aug 27, 2015 |
---|---|
Resolved | May 24, 2021 |
Updated | May 24, 2021 |